From 1f6600b9733baac1cb06345926e49d1135692608 Mon Sep 17 00:00:00 2001 From: rgdevment Date: Sun, 4 Oct 2026 15:27:02 -0300 Subject: [PATCH] ci: commit subjects may run to 100 characters, PR number included --- .github/workflows/commits.yml | 2 +- CONTRIBUTING.md | 2 +- scripts/commits.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/commits.yml b/.github/workflows/commits.yml index 695536a..4d4126d 100644 --- a/.github/workflows/commits.yml +++ b/.github/workflows/commits.yml @@ -30,7 +30,7 @@ jobs: TITLE: ${{ github.event.pull_request.title }} NUMBER: ${{ github.event.pull_request.number }} run: | - fits() { [ "$(printf '%s (#%s)' "$1" "$NUMBER" | wc -m)" -le 90 ]; } + fits() { [ "$(printf '%s (#%s)' "$1" "$NUMBER" | wc -m)" -le 100 ]; } short=$(printf '%s' "$TITLE" | sed -E 's/ across [0-9]+ director(y|ies)//') fits "$short" || short=$(printf '%s' "$short" | sed -E 's/ from [^ ]+ to [^ ]+//') fits "$short" || short=$(printf '%s' "$short" | sed -E 's/^([a-z]+: bump) .* in the ([^ ]+) group.*/\1 the \2 group/') diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 2bcde64..3a2fa5e 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -190,7 +190,7 @@ application and dies with the console it was started from. ### Commits and the checks that run before them Subjects follow [Conventional Commits](https://www.conventionalcommits.org/) -(`feat:`, `fix:`, `docs:`, `ci:`…), under 90 characters: CI refuses a longer one, +(`feat:`, `fix:`, `docs:`, `ci:`…), under 100 characters: CI refuses a longer one, and a squash keeps only the pull request's title, number included, so that is held to the same shape. diff --git a/scripts/commits.sh b/scripts/commits.sh index a7f2d03..82b5a3b 100755 --- a/scripts/commits.sh +++ b/scripts/commits.sh @@ -2,7 +2,7 @@ set -uo pipefail shape='^(feat|fix|docs|style|refactor|perf|test|build|ci|chore|revert)(\([a-z0-9._-]+\))?!?: .+' -most=90 +most=100 status=0 amiss() {