From 5d2d54c56ee91e74bf1df79501b975aead6ca8c6 Mon Sep 17 00:00:00 2001 From: Mario Rugiero Date: Thu, 4 Jun 2026 16:59:44 -0300 Subject: [PATCH] fix(all): fix checkout depth to 50 commits 0 may cause a very long checkout, but 1 gives no context to the agent. 50 is a rule-of-thumb that should give close to all commits in the PR without going overboard. --- .github/workflows/ai-review-claude.yml | 3 ++- .github/workflows/ai-review-codex.yml | 3 ++- .github/workflows/ai-review-kimi.yml | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ai-review-claude.yml b/.github/workflows/ai-review-claude.yml index 1924809..3c989b7 100644 --- a/.github/workflows/ai-review-claude.yml +++ b/.github/workflows/ai-review-claude.yml @@ -50,7 +50,8 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 with: - fetch-depth: 1 + # 50 commits for context + fetch-depth: 50 ref: ${{ github.event.pull_request.head.sha || format('refs/pull/{0}/head', github.event.issue.number) }} - name: Load prompt diff --git a/.github/workflows/ai-review-codex.yml b/.github/workflows/ai-review-codex.yml index b765512..ae538a5 100644 --- a/.github/workflows/ai-review-codex.yml +++ b/.github/workflows/ai-review-codex.yml @@ -46,7 +46,8 @@ jobs: steps: - uses: actions/checkout@v4 with: - fetch-depth: 0 + # 50 commits for context + fetch-depth: 50 ref: ${{ github.event.pull_request.head.sha || format('refs/pull/{0}/head', github.event.issue.number) }} - name: Load prompt diff --git a/.github/workflows/ai-review-kimi.yml b/.github/workflows/ai-review-kimi.yml index d3680a9..d39fd32 100644 --- a/.github/workflows/ai-review-kimi.yml +++ b/.github/workflows/ai-review-kimi.yml @@ -52,7 +52,8 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 with: - fetch-depth: 1 + # 50 commits for context + fetch-depth: 50 ref: ${{ github.event.pull_request.head.sha || format('refs/pull/{0}/head', github.event.issue.number) }} - name: Load prompt