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 f7c11da..47d2373 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