From 3ef93ff6f15d63ebed4eca4cfc2e275554efc208 Mon Sep 17 00:00:00 2001 From: Mitchell Hanberg Date: Thu, 3 Jul 2025 00:19:36 -0400 Subject: [PATCH] ci: conventional commits Since we are going to use release-please to manage our releases and changelog, we need to start using conventional commits and the Squash and Merge style of PR merging. This workflow will lint the pull request title to ensure that it follows conventional commits, since the title will be used as the commit subject when squash and merging --- .github/workflows/lint-commit.yaml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/lint-commit.yaml diff --git a/.github/workflows/lint-commit.yaml b/.github/workflows/lint-commit.yaml new file mode 100644 index 00000000..c5c80815 --- /dev/null +++ b/.github/workflows/lint-commit.yaml @@ -0,0 +1,22 @@ +name: Lint Commit +on: + pull_request_target: + types: + - opened + - reopened + - synchronize + - edited + +jobs: + commitlint: + runs-on: ubuntu-latest + name: commitlint + + steps: + - uses: actions/checkout@v4 + - uses: amannn/action-semantic-pull-request@v5 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + subjectPattern: ^(?![A-Z]).+$ +