From 4249bc58c8a2f9e8c3cb626e05fc51e5277edc8d Mon Sep 17 00:00:00 2001 From: Maciej Wilk Date: Tue, 21 Jul 2026 14:10:07 +0200 Subject: [PATCH 1/2] Add merge readiness check --- .github/workflows/labeler.yml | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index 394ec5de9..9cfced319 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -1,4 +1,4 @@ -name: labeler +name: Labeler on: push: @@ -11,16 +11,16 @@ on: paths: - '.github/labels.yml' - '.github/workflows/labeler.yml' + types: [opened, synchronize, reopened, labeled, unlabeled] jobs: labeler: runs-on: ubuntu-latest steps: - - - name: Checkout + - name: Checkout uses: actions/checkout@v7 - - - name: Run Labeler + + - name: Run Labeler uses: crazy-max/ghaction-github-labeler@548a7c3603594ec17c819e1239f281a3b801ab4d with: github-token: ${{ secrets.GITHUB_TOKEN }} @@ -29,3 +29,15 @@ jobs: exclude: | help* *issue + + - name: Check Merge Readiness + if: github.event_name == 'pull_request' + run: | + LABELS='${{ toJson(github.event.pull_request.labels.*.name) }}' + + if echo "$LABELS" | grep -q "do-not-merge"; then + echo "This PR is labeled as 'do-not-merge' so please make sure it is ready." + exit 1 + else + exit 0 + fi From a3ec47a65c3b16b762db9f8c8476fdb97afe1971 Mon Sep 17 00:00:00 2001 From: Maciej Wilk Date: Fri, 31 Jul 2026 09:04:42 +0200 Subject: [PATCH 2/2] Move merge readiness check to CI workflow --- .github/workflows/ci.yml | 13 +++++++++++++ .github/workflows/labeler.yml | 13 ------------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8ed342fea..52480247e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,6 +3,7 @@ on: workflow_dispatch: null push: pull_request: + types: [opened, synchronize, reopened, labeled, unlabeled] jobs: docker-build: runs-on: ubuntu-latest @@ -58,6 +59,18 @@ jobs: - name: run linter run: make lint + - name: Check Merge Readiness + if: github.event_name == 'pull_request' + run: | + LABELS='${{ toJson(github.event.pull_request.labels.*.name) }}' + + if echo "$LABELS" | grep -q "do-not-merge"; then + echo "This PR is labeled as 'do-not-merge' so please make sure it is ready." + exit 1 + else + exit 0 + fi + unit-tests-on-ubuntu: runs-on: ubuntu-latest strategy: diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index 9cfced319..ae22dada4 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -11,7 +11,6 @@ on: paths: - '.github/labels.yml' - '.github/workflows/labeler.yml' - types: [opened, synchronize, reopened, labeled, unlabeled] jobs: labeler: @@ -29,15 +28,3 @@ jobs: exclude: | help* *issue - - - name: Check Merge Readiness - if: github.event_name == 'pull_request' - run: | - LABELS='${{ toJson(github.event.pull_request.labels.*.name) }}' - - if echo "$LABELS" | grep -q "do-not-merge"; then - echo "This PR is labeled as 'do-not-merge' so please make sure it is ready." - exit 1 - else - exit 0 - fi