diff --git a/.github/workflows/close-inactive-issues.yml b/.github/workflows/repo--close-inactive-issues.yml similarity index 100% rename from .github/workflows/close-inactive-issues.yml rename to .github/workflows/repo--close-inactive-issues.yml diff --git a/.github/workflows/repo--do-not-merge-pr.yml b/.github/workflows/repo--do-not-merge-pr.yml new file mode 100644 index 0000000000..b3e8484c8d --- /dev/null +++ b/.github/workflows/repo--do-not-merge-pr.yml @@ -0,0 +1,20 @@ +name: Check for "option.do-not-merge" Label + +on: + pull_request: + types: [labeled, unlabeled, synchronize, opened, reopened] + +jobs: + check_label: + if: github.event.pull_request.draft == false + runs-on: [arc-runner-set] + steps: + - name: Check for "option.do-not-merge" label + id: check_label + uses: actions/github-script@v7 + with: + script: | + const labels = context.payload.pull_request.labels.map(label => label.name); + if (labels.includes("option.do-not-merge")) { + core.setFailed('The "option.do-not-merge" label is present. PR cannot be merged.'); + } diff --git a/.github/workflows/lint-pr.yml b/.github/workflows/repo--lint-pr.yml similarity index 100% rename from .github/workflows/lint-pr.yml rename to .github/workflows/repo--lint-pr.yml diff --git a/.github/workflows/release-please.yml b/.github/workflows/repo--release-please.yml similarity index 100% rename from .github/workflows/release-please.yml rename to .github/workflows/repo--release-please.yml