GitHub action to automate managing repositories with labels, milestones and projects.
- Link issues and PRs labels.
- Add issues and PRs to a project board.
- Mark issues and PRs based on state such as reviews.
- Mark PRs based on what files they edit
- Link milestone assignments to issues and PRs with labels.
PAT
is stored in settings/secrets/actions
and is a GitHub PAT with write:org
acccess if you would like triagecat to manage a beta project board on your organisation.
You most likely also need settings/actions
Workflow permissions
to be set to Read and write permissions
or set the permissions
block in the workflow.
on:
issues:
types: [opened, closed, labeled, unlabeled, milestoned, demilestoned]
pull_request_target:
types: [labeled, unlabeled, opened, closed, converted_to_draft, ready_for_review]
pull_request_review:
types: [submitted]
issue_comment:
types: [created]
workflow_dispatch:
jobs:
triagecat:
name: Example triagecat workflow
runs-on: ubuntu-latest
steps:
- uses: ooliver1/triagecat@master # lock to version
with:
org-token: ${{ secrets.PAT }}
repo-token: ${{ secrets.GITHUB_TOKEN }}
- Fork the repository
- Clone the repository -
git clone https://github.com/username/triagecat
- Change the directory name to the name of your fork -
git checkout -b username/feat/my-feature
- Install dependencies -
pnpm install
(ornpm install
oryarn install
) - Build the project -
pnpm run build
(ornpm run build
oryarn run build
) - Run tests -
pnpm test
(ornpm test
oryarn test
) - Submit a pull request