Skip to content

Commit a49052a

Browse files
feat: add GitHub Actions workflow to auto-label PRs by content type (#52)
Co-authored-by: Paperclip <noreply@paperclip.ing>
1 parent 1b03296 commit a49052a

2 files changed

Lines changed: 50 additions & 0 deletions

File tree

.github/labeler.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
boombox:
2+
- changed-files:
3+
- any-glob-to-any-file: 'content/_boombox/**'
4+
5+
horn-sounds:
6+
- changed-files:
7+
- any-glob-to-any-file: 'content/_hornsounds/**'
8+
9+
light-shows:
10+
- changed-files:
11+
- any-glob-to-any-file: 'content/_lightshows/**'
12+
13+
lock-sounds:
14+
- changed-files:
15+
- any-glob-to-any-file: 'content/_locksounds/**'
16+
17+
wraps:
18+
- changed-files:
19+
- any-glob-to-any-file: 'content/_wraps/**'
20+
21+
site:
22+
- changed-files:
23+
- any-glob-to-any-file:
24+
- '_layouts/**'
25+
- '_includes/**'
26+
- '_config.yml'
27+
- '*.md'
28+
29+
ci:
30+
- changed-files:
31+
- any-glob-to-any-file:
32+
- '.github/**'
33+
- 'scripts/**'

.github/workflows/labeler.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Label PRs
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize]
6+
7+
permissions:
8+
contents: read
9+
pull-requests: write
10+
11+
jobs:
12+
label:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 # v5
16+
with:
17+
sync-labels: true

0 commit comments

Comments
 (0)