-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add automatic issue labeler to organize opened issues
This PR is based on Github Regex labeler https://github.com/marketplace/actions/regex-issue-labeler?version=v3.1 and use a configuration file to set label to issues. I want to organize issues based on which part of dora they affect.
- Loading branch information
1 parent
c2feb45
commit a8ac15b
Showing
2 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# Add/remove 'critical' label if issue contains the words 'urgent' or 'critical' | ||
critical: | ||
- '(critical|urgent)' | ||
|
||
cli: | ||
- 'cli' | ||
|
||
daemon: | ||
- 'daemon' | ||
|
||
coordinator: | ||
- 'coordinator' | ||
|
||
runtime: | ||
- 'runtime' | ||
|
||
python: | ||
- 'python' | ||
|
||
c: | ||
- 'c' | ||
|
||
c++: | ||
- '(c++/cxx)' | ||
|
||
rust: | ||
- 'rust' | ||
|
||
windows: | ||
- 'windows' | ||
|
||
macos: | ||
- 'macos' | ||
|
||
linux: | ||
- '(linux|ubuntu)' | ||
|
||
bug: | ||
- 'bug' | ||
|
||
documentation: | ||
- '(doc|documentation)' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
name: "Issue Labeler" | ||
on: | ||
issues: | ||
types: [opened, edited] | ||
|
||
jobs: | ||
triage: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: github/[email protected] #May not be the latest version | ||
with: | ||
repo-token: "${{ secrets.GITHUB_TOKEN }}" | ||
configuration-path: .github/labeler.yml | ||
enable-versioned-regex: 0 | ||
include-title: 1 |