Skip to content

Commit

Permalink
Add automatic issue labeler to organize opened issues
Browse files Browse the repository at this point in the history
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
haixuanTao committed Apr 24, 2023
1 parent c2feb45 commit a8ac15b
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/labeler.yml
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)'

15 changes: 15 additions & 0 deletions .github/workflows/labeler.yml
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

0 comments on commit a8ac15b

Please sign in to comment.