summaryrefslogtreecommitdiffstats
path: root/.github/workflows/block-merge-freeze.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/block-merge-freeze.yml')
-rw-r--r--.github/workflows/block-merge-freeze.yml17
1 files changed, 14 insertions, 3 deletions
diff --git a/.github/workflows/block-merge-freeze.yml b/.github/workflows/block-merge-freeze.yml
index bfe58551d11..f2d029c9927 100644
--- a/.github/workflows/block-merge-freeze.yml
+++ b/.github/workflows/block-merge-freeze.yml
@@ -3,13 +3,24 @@
# https://github.com/nextcloud/.github
# https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization
-name: Pull request checks
+name: Block merges during freezes
-on: pull_request
+on:
+ pull_request:
+ types: [opened, ready_for_review, reopened, synchronize]
+
+permissions:
+ contents: read
+
+concurrency:
+ group: block-merge-freeze-${{ github.head_ref || github.run_id }}
+ cancel-in-progress: true
jobs:
block-merges-during-freeze:
- name: Block merges during feature freezes
+ name: Block merges during freezes
+
+ if: github.event.pull_request.draft == false
runs-on: ubuntu-latest