Skip to content
This repository has been archived by the owner on Oct 8, 2022. It is now read-only.

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy McKay authored Sep 20, 2019
1 parent 7e5f047 commit 42e28f9
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
Labels issues when they land in a repo with the `needs-triage` label.
Automatically labels issues, by adding new labels to the issue. You define the labels you'd like to add to your issues in the YAML file.

This is probably going to get a bit more sophisticated to meet all our needs but will do for the moment.
To add it to your workflow:

```
- uses: andymckay/[email protected]
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
labels: "needs-triage, bug"
```

This adds the `needs-triage` and `bug` issues to the issue. The most common approach is to do this when issues are created, you can do this with the following in your workflow file:

```
on:
issues:
types: [opened]
```

That's it.

0 comments on commit 42e28f9

Please sign in to comment.