Skip to content

Commit 4cee336

Browse files
authored
Revert "enforcing labels in PR before merge (#7315)"
This reverts commit afb4adc.
1 parent afb4adc commit 4cee336

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

.github/workflows/labeler.yml

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,17 @@
11
name: 🏷️ Pull Request Labeler
22

33
# Label pull requests based on config in .github/labeler.yml
4-
# Then enforce that at least one label is selected
54

6-
on:
7-
pull_request_target:
8-
pull_request:
9-
types: [labeled, unlabeled, opened, edited, synchronize]
5+
on: [pull_request_target]
106

117
permissions:
128
contents: read
139
pull-requests: write
1410

1511
jobs:
1612
label:
17-
if: github.event_name == 'pull_request_target'
1813
runs-on: ubuntu-latest
1914
steps:
2015
- uses: actions/labeler@v5
2116
with:
2217
repo-token: ${{ secrets.GITHUB_TOKEN }}
23-
24-
enforce-label:
25-
needs: [label]
26-
if: always() && (needs.label.result == 'success' || needs.label.result == 'skipped')
27-
runs-on: ubuntu-latest
28-
steps:
29-
- uses: yogevbd/[email protected]
30-
with:
31-
REQUIRED_LABELS_ANY: "enhancement,bug,documentation,internal,preview,other"
32-
REQUIRED_LABELS_ANY_DESCRIPTION: "Select at least one label ['enhancement','bug','documentation','internal','preview','other']"

0 commit comments

Comments
 (0)