We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d81d4a commit 4428315Copy full SHA for 4428315
.github/workflows/blocked.yaml
@@ -0,0 +1,17 @@
1
+name: Prevent blocked
2
+on:
3
+ pull_request_target:
4
+ types: [opened, labeled, unlabeled]
5
+jobs:
6
+ prevent-blocked:
7
+ name: Prevent blocked
8
+ runs-on: ubuntu-latest
9
+ permissions:
10
+ pull-requests: read
11
+ steps:
12
+ - name: Add notice
13
+ uses: actions/github-script@v7
14
+ if: contains(github.event.pull_request.labels.*.name, 'X-Blocked')
15
+ with:
16
+ script: |
17
+ core.setFailed("PR has been labeled with X-Blocked; it cannot be merged.");
0 commit comments