A local-first personal finance app
[AI] Add GitHub workflow to block PRs with "do not merge" label (#8090)
Matiss Janis Aboltinse207d191838a
diff --git a/.github/workflows/do-not-merge.yml b/.github/workflows/do-not-merge.ymlnew file mode 100644index 0000000000..5867f94997--- /dev/null+++ b/.github/workflows/do-not-merge.yml@@ -0,0 +1,19 @@+name: Block PRs with "do not merge" label++on:+ pull_request:+ types: [opened, reopened, synchronize, labeled, unlabeled]++permissions:+ contents: read++jobs:+ do-not-merge:+ name: Block PRs with "do not merge" label+ runs-on: ubuntu-latest+ steps:+ - name: Fail if 'do not merge' label is set+ if: contains(github.event.pull_request.labels.*.name, 'do not merge')+ run: |+ echo "::error::This PR has the 'do not merge' label set."+ exit 1diff --git a/upcoming-release-notes/8090.md b/upcoming-release-notes/8090.mdnew file mode 100644index 0000000000..086329d2ce--- /dev/null+++ b/upcoming-release-notes/8090.md@@ -0,0 +1,6 @@+---+category: Maintenance+authors: [MatissJanis]+---++Add a CI check that fails when a pull request has the "do not merge" label.