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

Commit 32af99b

Browse files
author
Andy McKay
committed
Merge branch 'master' of github.com:andymckay/labeler
2 parents c522b71 + 42e28f9 commit 32af99b

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

README.md

+19-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1-
Labels issues when they land in a repo with the `needs-triage` label.
1+
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.
22

3-
This is probably going to get a bit more sophisticated to meet all our needs but will do for the moment.
3+
To add it to your workflow:
4+
5+
```
6+
- uses: andymckay/[email protected]
7+
with:
8+
repo-token: "${{ secrets.GITHUB_TOKEN }}"
9+
labels: "needs-triage, bug"
10+
```
11+
12+
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:
13+
14+
```
15+
on:
16+
issues:
17+
types: [opened]
18+
```
19+
20+
That's it.

0 commit comments

Comments
 (0)