Skip to content

Commit 2da8ed1

Browse files
authored
Stop using label enforcement and clean up shared workflow (#298)
1 parent cc4aa15 commit 2da8ed1

File tree

2 files changed

+3
-35
lines changed

2 files changed

+3
-35
lines changed

.github/workflows/_enforce-labels.yml

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,16 @@
1-
---
21
name: Enforce PR labels
32

43
on:
54
workflow_call:
65

76
jobs:
87
enforce-label:
9-
if: ${{ contains(github.event.*.labels.*.name, 'hold') || contains(github.event.*.labels.*.name, 'needs-qa') }}
8+
if: ${{ contains(github.event.*.labels.*.name, 'hold') }}
109
name: Enforce label
1110
runs-on: ubuntu-22.04
1211
steps:
1312
- name: Check for label
1413
run: |
15-
echo "PRs with the hold or needs-qa labels cannot be merged"
16-
echo "### :x: PRs with the hold or needs-qa labels cannot be merged" >> $GITHUB_STEP_SUMMARY
14+
echo "PRs with the hold label cannot be merged"
15+
echo "### :x: PRs with the hold label cannot be merged" >> $GITHUB_STEP_SUMMARY
1716
exit 1
18-
19-
# enforce-version-label:
20-
# if: ${{ !contains(github.event.*.labels.*.name, 'version') }}
21-
# name: Enforce version label
22-
# runs-on: ubuntu-22.04
23-
24-
# steps:
25-
# - name: Check for label
26-
# run: |
27-
# echo "PR without the version label cannot be merged."
28-
# echo "### :x: PR without the version label cannot be merged" >> $GITHUB_STEP_SUMMARY
29-
# exit 1

.github/workflows/enforce-labels.yml

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)