Skip to content

“Librarian” for Git Things Done

Actions
Automatically labels your GitTD tickets based on their content
v1.0.2
Latest
Star (0)

“Librarian” for Git Things Done

Automation that automatically labels your GitTD tickets based on content.

Usage

Currently we support the following labels:

  • lol
  • inspiration
  • audit
  • journal

New comments that are titled with the above will be labeled accordingly.

Additionally if a # Fortune comment is +1’d we label the ticket with good-fortune.

Installation

Requires GitTD.

Note, if you forked our template repository you already have this.

Add .github/workflows/librarian.yml:

on:
  issue_comment:
    types:
      - created
      - edited
      - deleted
jobs:
  librarian:
    runs-on: ubuntu-latest
    if: github.event.issue_comment.user.login != 'github-actions[bot]'
    steps:
      - uses: git-things-done/librarian@v1
        id: labels
        with:
          today: ${{ github.event.issue.number }}

      - uses: KeisukeYamashita/attach-labels@v1
        if: ${{ steps.labels.outputs.append }}
        with:
          labels: ${{ steps.labels.outputs.append }}
          number: ${{ github.event.issue.number }}

      - uses: peter-murray/remove-labels-action@v1
        if: ${{ steps.labels.outputs.remove }}
        with:
          labels: ${{ steps.labels.outputs.remove }}
          issue_number: ${{ github.event.issue.number }}

“Librarian” for Git Things Done is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Automatically labels your GitTD tickets based on their content
v1.0.2
Latest

“Librarian” for Git Things Done is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.