Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/workflows/adr-labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: ADR Labeler

on:
# PRs coming from forks will not have the write permissions required to run this action
pull_request:
types: [opened, synchronize]
paths:
- 'docs/adr/**'

jobs:
label-adr:
runs-on: ubuntu-latest

steps:
- uses: actions/github-script@v7
with:
script: |
// Adding ADR label - if it already exists, this is a no-op
github.rest.issues.addLabels({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
labels: ['ADR']
})