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 7b644af commit 988e171Copy full SHA for 988e171
.github/workflows/pr-label-check.yml
@@ -3,9 +3,6 @@ name: Enforce PR Label
3
on:
4
pull_request:
5
types: [opened, edited, unlabeled]
6
- push:
7
- branches:
8
- - '**'
9
10
jobs:
11
check-label:
@@ -15,10 +12,6 @@ jobs:
15
12
uses: actions/github-script@v6
16
13
with:
17
14
script: |
18
- if (context.eventName === 'push') {
19
- console.log('Skipping label check for push event.');
20
- return;
21
- }
22
const labels = context.payload.pull_request?.labels || [];
23
if (labels.length === 0) {
24
throw new Error('This pull request must have at least one label.');
0 commit comments