Skip to content

Commit c1a257e

Browse files
chore: ensure 'breaking change' label for PRs that touch stable configs (typescript-eslint#9243)
1 parent 654f9e9 commit c1a257e

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/pr-labels.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Pull Request Labels
2+
3+
on:
4+
pull_request:
5+
types: [labeled, opened, synchronize, unlabeled]
6+
7+
jobs:
8+
label:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
issues: write
12+
pull-requests: write
13+
steps:
14+
- id: changed-stable-configs
15+
uses: tj-actions/changed-files@v44.5.2
16+
with:
17+
files: packages/{eslint-plugin,typescript-eslint}/src/configs/{recommended,stylistic}*
18+
- if: steps.changed-stable-configs.outputs.any_changed == 'true'
19+
uses: mheap/github-action-required-labels@v5.4.1
20+
with:
21+
add_comment: true
22+
count: 1
23+
labels: breaking change
24+
message: '🤖 Beep boop! PRs that change our stable preset configs must be labeled with `breaking change`.'
25+
mode: minimum

0 commit comments

Comments
 (0)