Commit a006ad53 authored by Fabio Baltieri's avatar Fabio Baltieri Committed by Anas Nashif
Browse files

ci: do_not_merge: check for dev and arch review labels as well



Add "Architecture Review" and "dev-review" to the list of labels that
block a PR from merging, less chances to merge these before discussion
unintentionally.

Signed-off-by: default avatarFabio Baltieri <fabiobaltieri@google.com>
parent 698f3b1a
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -7,12 +7,14 @@ on:
jobs:
  do-not-merge:
    if: ${{ contains(github.event.*.labels.*.name, 'DNM') ||
            contains(github.event.*.labels.*.name, 'TSC') }}
            contains(github.event.*.labels.*.name, 'TSC') ||
            contains(github.event.*.labels.*.name, 'Architecture Review') ||
            contains(github.event.*.labels.*.name, 'dev-review') }}
    name: Prevent Merging
    runs-on: ubuntu-22.04
    steps:
      - name: Check for label
        run: |
          echo "Pull request is labeled as 'DNM' or 'TSC'"
          echo "This workflow fails so that the pull request cannot be merged"
          echo "Pull request is labeled as 'DNM', 'TSC', 'Architecture Review' or 'dev-review'."
          echo "This workflow fails so that the pull request cannot be merged."
          exit 1