From afabf8521ad9f09c64e747e0239c30b5998ad1e5 Mon Sep 17 00:00:00 2001 From: Chris Burr Date: Tue, 24 Mar 2026 10:59:49 +0100 Subject: [PATCH 1/2] ci: enforce conventional commit format for PR titles --- .github/workflows/pr-title.yml | 36 ++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/pr-title.yml diff --git a/.github/workflows/pr-title.yml b/.github/workflows/pr-title.yml new file mode 100644 index 000000000..e90eea8a1 --- /dev/null +++ b/.github/workflows/pr-title.yml @@ -0,0 +1,36 @@ +name: PR Title + +on: + pull_request_target: + types: [opened, edited, synchronize] + +permissions: + pull-requests: read + +jobs: + validate: + name: Validate PR title + runs-on: ubuntu-latest + steps: + - uses: amannn/action-semantic-pull-request@v5 + if: ${{ github.actor != 'pre-commit-ci[bot]' }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + types: | + feat + fix + docs + style + refactor + perf + test + build + ci + chore + revert + requireScope: false + subjectPattern: ^(?![A-Z]).+$ + subjectPatternError: | + The subject "{subject}" found in the pull request title "{title}" + must not start with an uppercase letter. From 970716a87a46cb2941adf797fe22cec7106fbefb Mon Sep 17 00:00:00 2001 From: Chris Burr Date: Tue, 24 Mar 2026 11:18:57 +0100 Subject: [PATCH 2/2] Update .github/workflows/pr-title.yml Co-authored-by: Federico Stagni --- .github/workflows/pr-title.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr-title.yml b/.github/workflows/pr-title.yml index e90eea8a1..cb1405998 100644 --- a/.github/workflows/pr-title.yml +++ b/.github/workflows/pr-title.yml @@ -12,7 +12,7 @@ jobs: name: Validate PR title runs-on: ubuntu-latest steps: - - uses: amannn/action-semantic-pull-request@v5 + - uses: amannn/action-semantic-pull-request@v6 if: ${{ github.actor != 'pre-commit-ci[bot]' }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}