Skip to content

Commit 988e171

Browse files
committed
Adjusted pr label check
1 parent 7b644af commit 988e171

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

.github/workflows/pr-label-check.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ name: Enforce PR Label
33
on:
44
pull_request:
55
types: [opened, edited, unlabeled]
6-
push:
7-
branches:
8-
- '**'
96

107
jobs:
118
check-label:
@@ -15,10 +12,6 @@ jobs:
1512
uses: actions/github-script@v6
1613
with:
1714
script: |
18-
if (context.eventName === 'push') {
19-
console.log('Skipping label check for push event.');
20-
return;
21-
}
2215
const labels = context.payload.pull_request?.labels || [];
2316
if (labels.length === 0) {
2417
throw new Error('This pull request must have at least one label.');

0 commit comments

Comments
 (0)