mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 18:00:18 +01:00
7617a44a57
* gh action: do-not-merge * gh action: do-not-merge update * gh action: Do Not Merge - use github.event.pull_request Co-authored-by: Mark Stacey <markjstacey@gmail.com> --------- Co-authored-by: Mark Stacey <markjstacey@gmail.com>
18 lines
484 B
YAML
18 lines
484 B
YAML
# Fails the pull request if it has the "DO-NOT-MERGE" label
|
|
|
|
name: Check "DO-NOT-MERGE" label
|
|
|
|
on:
|
|
pull_request:
|
|
types: [opened, reopened, labeled, unlabeled, synchronize]
|
|
|
|
jobs:
|
|
do-not-merge:
|
|
runs-on: ubuntu-latest
|
|
if: ${{ contains(github.event.pull_request.labels.*.name, 'DO-NOT-MERGE') }}
|
|
steps:
|
|
- name: 'Check for label "DO-NOT-MERGE"'
|
|
run: |
|
|
echo 'This check fails PRs with the "DO-NOT-MERGE" label to block merging'
|
|
exit 1
|