diff --git a/.github/workflows/pr-analysis.yml b/.github/workflows/pr-analysis.yml index b74a99c9799b..653869ada03b 100644 --- a/.github/workflows/pr-analysis.yml +++ b/.github/workflows/pr-analysis.yml @@ -1,7 +1,7 @@ name: PR Analysis on: pull_request: - types: [opened, synchronize, labeled, unlabeled] + types: [opened, labeled, unlabeled] permissions: contents: read pull-requests: read @@ -9,6 +9,6 @@ jobs: allowed-labels: runs-on: ubuntu-latest steps: - - name: Return error if branch is in lockdown or 'do not merge' label is present + - name: Return error if blocking labels are present in PR run: echo "Labels on this PR prevent it from being merged. Please contact the repo owners for more information." && exit 1 - if: ${{ contains(github.event.pull_request.labels.*.name, 'Branch Lockdown') || contains(github.event.pull_request.labels.*.name, 'DO NOT MERGE') }} + if: ${{ contains(github.event.pull_request.labels.*.name, 'Branch Lockdown') || contains(github.event.pull_request.labels.*.name, 'DO NOT MERGE') || contains(github.event.pull_request.labels.*.name, 'Servicing-consider') || contains(github.event.pull_request.labels.*.name, 'Servicing-more-info') || contains(github.event.pull_request.labels.*.name, 'Servicing-rejected') }}