Skip to content

Latest commit

 

History

History
60 lines (43 loc) · 1.34 KB

README.md

File metadata and controls

60 lines (43 loc) · 1.34 KB

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