Skip to content

Commit df72523

Browse files
committed
create adr-labeler workflow
1 parent 91704b5 commit df72523

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/adr-labeler.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: ADR Labeler
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize]
6+
paths:
7+
- 'docs/adr/**'
8+
9+
jobs:
10+
label-adr:
11+
runs-on: ubuntu-latest
12+
permissions:
13+
pull-requests: write
14+
15+
steps:
16+
- uses: actions/github-script@v7
17+
with:
18+
script: |
19+
# Adding ADR label - if it already exists, this is a no-op
20+
github.rest.issues.addLabels({
21+
owner: context.repo.owner,
22+
repo: context.repo.repo,
23+
issue_number: context.issue.number,
24+
labels: ['ADR']
25+
})

0 commit comments

Comments
 (0)