From 1a7fca22527dfcf1dbb7813c2e04899b4a34963f Mon Sep 17 00:00:00 2001 From: "K. C. Ramakrishna" Date: Mon, 2 Nov 2026 13:13:40 +0530 Subject: [PATCH] ci: run the PR title check in the merge queue Co-Authored-By: Claude Sonnet 5.5 --- .github/workflows/pr-title.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/pr-title.yml b/.github/workflows/pr-title.yml index b52a69d55..b52d3f641 100644 --- a/.github/workflows/pr-title.yml +++ b/.github/workflows/pr-title.yml @@ -4,6 +4,8 @@ on: pull_request: types: [opened, edited, synchronize, reopened] branches: ['dev', 'master'] + # Merge-queue runs have no PR title; report success so the check can be required. + merge_group: permissions: {} @@ -16,7 +18,12 @@ jobs: - name: Check PR title env: TITLE: ${{ github.event.pull_request.title }} + EVENT: ${{ github.event_name }} run: | + if [[ "$EVENT" == "merge_group" ]]; then + echo "Merge group: no PR title to check (already checked on the pull_request run)." + exit 0 + fi pattern='^(feat|fix|perf|refactor|docs|test|build|ci|chore|revert)(\([a-z0-9._/-]+\))?!?: .+' if [[ ! "$TITLE" =~ $pattern ]]; then echo "::error::PR title must look like 'feat: add x' or 'fix(api): y' (types: feat, fix, perf, refactor, docs, test, build, ci, chore, revert)."