Skip to content
check-square

GitHub Action

“Librarian” for Git Things Done

v1.0.2 Latest version

“Librarian” for Git Things Done

check-square

“Librarian” for Git Things Done

Automatically labels your GitTD tickets based on their content

Installation

Copy and paste the following snippet into your .yml file.

              

- name: “Librarian” for Git Things Done

uses: git-things-done/librarian@v1.0.2

Learn more about this action in git-things-done/librarian

Choose a version

“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 }}