From b64770939c9ade412683980469bec43922eaa27f Mon Sep 17 00:00:00 2001 From: Gabriel Pan Gantes Date: Wed, 27 May 2026 12:10:37 +0200 Subject: [PATCH] chore(ci): add PR title validation workflow Ports pluggy-node's pr-title.yml. Runs on every PR to master and validates the title against Conventional Commits via amannn/action-semantic-pull-request@v6.1.1. Allowed types: feat, fix, perf, chore, docs, style, refactor, test, build, ci, revert. Scope is optional. The existing commit history in this repo already follows this style informally (fix:, feat:, feat(identity):, chore(deps):, etc.); this workflow just makes it enforced so titles can't drift. --- .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 0000000..a6f147f --- /dev/null +++ b/.github/workflows/pr-title.yml @@ -0,0 +1,36 @@ +name: PR title + +on: + pull_request: + types: + - opened + - edited + - reopened + - synchronize + branches: + - master + +jobs: + validate: + name: Validate Conventional Commits title + runs-on: ubuntu-latest + permissions: + pull-requests: read + steps: + - uses: amannn/action-semantic-pull-request@v6.1.1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + types: | + feat + fix + perf + chore + docs + style + refactor + test + build + ci + revert + requireScope: false