From bcbf8a236d0f90b3f7b85348e01bde95da03f42b Mon Sep 17 00:00:00 2001 From: Tam Nhu Tran Date: Sun, 29 Mar 2026 13:01:55 -0400 Subject: [PATCH] fix(ai-review): increase max-turns to 40 and add hotfix commitlint type MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Bump --max-turns 30→40 for comprehensive single-reviewer prompt - Add 'hotfix' to commitlint allowed types (already in .releaserc.cjs) --- .github/workflows/ai-review.yml | 2 +- commitlint.config.cjs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ai-review.yml b/.github/workflows/ai-review.yml index 431cdbde..cdd917ba 100644 --- a/.github/workflows/ai-review.yml +++ b/.github/workflows/ai-review.yml @@ -261,7 +261,7 @@ jobs: --bare --model ${{ env.REVIEW_MODEL }} --permission-mode bypassPermissions - --max-turns 30 + --max-turns 40 --allowedTools "Glob,Grep,Read,Write,Bash(gh pr diff *),Bash(gh pr view *),Bash(git diff *),Bash(git log *),Bash(git show *),Bash(cat *),Bash(ls *),Bash(wc *),Bash(head *),Bash(tail *),Bash(find *)" # Fallback: if Claude didn't write the review file, extract from execution output diff --git a/commitlint.config.cjs b/commitlint.config.cjs index f135c032..cdb30d43 100644 --- a/commitlint.config.cjs +++ b/commitlint.config.cjs @@ -15,7 +15,8 @@ module.exports = { 'chore', // Maintenance → no release 'ci', // CI/CD changes → no release 'build', // Build system → no release - 'revert' // Revert commit → PATCH + 'revert', // Revert commit → PATCH + 'hotfix' // Production hotfix → PATCH ]], // Subject case - disabled to allow capital letters 'subject-case': [0],