Skip to content

git-things-done/librarian

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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