From 17f494f16f686c7bd45a91727be70d5f94975515 Mon Sep 17 00:00:00 2001 From: Parker Kuivila Date: Fri, 8 Aug 2025 09:08:52 -0400 Subject: [PATCH] chore: pr lint add --- .commitlintrc.json | 2 +- .github/workflows/pr-title-check.yml | 30 ++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/pr-title-check.yml diff --git a/.commitlintrc.json b/.commitlintrc.json index 37844f25a..d61fbee61 100644 --- a/.commitlintrc.json +++ b/.commitlintrc.json @@ -1,6 +1,6 @@ { "rules": { - "header-max-length": [2, "always", 72], + "header-max-length": [2, "always", 100], "body-leading-blank": [2, "always"], "type-empty": [2, "never"], "type-enum": [ diff --git a/.github/workflows/pr-title-check.yml b/.github/workflows/pr-title-check.yml new file mode 100644 index 000000000..fc88a0484 --- /dev/null +++ b/.github/workflows/pr-title-check.yml @@ -0,0 +1,30 @@ +name: PR Title Check + +on: + pull_request: + types: [opened, edited, synchronize] + +jobs: + pr-title-check: + runs-on: ubuntu-latest + steps: + - name: Check PR Title + uses: amannn/action-semantic-pull-request@v5 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + # Configure the action to use conventional commit types + types: | + feat + fix + docs + style + refactor + perf + test + chore + ci + build + revert + # Don't require scopes + requireScope: false \ No newline at end of file