From cbcf8d6479477916325408de73ba19633c565acc Mon Sep 17 00:00:00 2001 From: David Poblador i Garcia Date: Sun, 3 May 2026 09:45:12 +0200 Subject: [PATCH] ci: validate PR titles as conventional commits Prevents release-please from silently dropping PRs whose squash subject is non-conventional. Matches the workflow already shipping in alltuner/vibetuner. Refs alltuner/switchyard#37 Co-Authored-By: Claude Opus 4.7 (1M context) --- .github/workflows/pr-title-check.yml | 35 ++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/pr-title-check.yml diff --git a/.github/workflows/pr-title-check.yml b/.github/workflows/pr-title-check.yml new file mode 100644 index 0000000..9ecea02 --- /dev/null +++ b/.github/workflows/pr-title-check.yml @@ -0,0 +1,35 @@ +name: PR Title Check + +on: + pull_request_target: + types: [opened, edited, synchronize, reopened] + +jobs: + validate-title: + runs-on: ubuntu-latest + permissions: + pull-requests: read + steps: + - name: Validate PR title + uses: amannn/action-semantic-pull-request@v6 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + types: | + feat + fix + docs + chore + refactor + style + test + perf + ci + build + requireScope: false + subjectPattern: ^.+$ + subjectPatternError: | + The subject must not be empty. + validateSingleCommit: false + ignoreLabels: | + skip-changelog