Skip to content

Commit 3300692

Browse files
n0toosejounathaen
authored andcommitted
ci(labeler): add automatic pull request labeling
Some new issue labels were added. This change attempts to partially automate the manual effort of labeling, which is otherwise helpful for being able to shift through past PRs concerning specific focus points.
1 parent 395144c commit 3300692

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

.github/labeler.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
'ci':
2+
- changed-files:
3+
- any-glob-to-any-file: ['.github/workflows/**']
4+
'tests':
5+
- changed-files:
6+
- any-glob-to-any-file: ['tests/**']
7+
'docs':
8+
- changed-files:
9+
- any-glob-to-all-files: ['*.md']
10+
'feature/security':
11+
- changed-files:
12+
- any-glob-to-any-file: ['src/isolation/**']
13+
'feature/uhyve-interface':
14+
- changed-files:
15+
- any-glob-to-any-file: ['uhyve-interface/**']

.github/workflows/labeler.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: "Assign PR labels"
2+
on:
3+
workflow_dispatch:
4+
pull_request_target:
5+
6+
jobs:
7+
labeler:
8+
permissions:
9+
contents: read
10+
pull-requests: write
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/labeler@v6
14+
with:
15+
sync-labels: true

0 commit comments

Comments
 (0)