-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Stop using label enforcement and clean up shared workflow (#298)
- Loading branch information
1 parent
cc4aa15
commit 2da8ed1
Showing
2 changed files
with
3 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,16 @@ | ||
--- | ||
name: Enforce PR labels | ||
|
||
on: | ||
workflow_call: | ||
|
||
jobs: | ||
enforce-label: | ||
if: ${{ contains(github.event.*.labels.*.name, 'hold') || contains(github.event.*.labels.*.name, 'needs-qa') }} | ||
if: ${{ contains(github.event.*.labels.*.name, 'hold') }} | ||
name: Enforce label | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Check for label | ||
run: | | ||
echo "PRs with the hold or needs-qa labels cannot be merged" | ||
echo "### :x: PRs with the hold or needs-qa labels cannot be merged" >> $GITHUB_STEP_SUMMARY | ||
echo "PRs with the hold label cannot be merged" | ||
echo "### :x: PRs with the hold label cannot be merged" >> $GITHUB_STEP_SUMMARY | ||
exit 1 | ||
# enforce-version-label: | ||
# if: ${{ !contains(github.event.*.labels.*.name, 'version') }} | ||
# name: Enforce version label | ||
# runs-on: ubuntu-22.04 | ||
|
||
# steps: | ||
# - name: Check for label | ||
# run: | | ||
# echo "PR without the version label cannot be merged." | ||
# echo "### :x: PR without the version label cannot be merged" >> $GITHUB_STEP_SUMMARY | ||
# exit 1 |
This file was deleted.
Oops, something went wrong.