Automation that automatically labels your GitTD tickets based on content.
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
.
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 }}