From fbd4c217c2034afc51f1b27ea036961dc26df23d Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Fri, 23 Jan 2026 16:35:13 +0000 Subject: [PATCH] fix(ci): fix upstream fetch depth in agent review (agent) Co-authored-by: PR0M3TH3AN <53631862+PR0M3TH3AN@users.noreply.github.com> --- .github/workflows/agent-pr-review.yml | 5 +++++ scripts/automated-pr-review.mjs | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/agent-pr-review.yml b/.github/workflows/agent-pr-review.yml index b7b58244..a014d622 100644 --- a/.github/workflows/agent-pr-review.yml +++ b/.github/workflows/agent-pr-review.yml @@ -29,6 +29,11 @@ jobs: node-version: 20 cache: 'npm' + - name: Add upstream remote + run: | + git remote add upstream https://github.com/PR0M3TH3AN/bitvid.git || true + git fetch upstream + - name: Run Agent Review env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/scripts/automated-pr-review.mjs b/scripts/automated-pr-review.mjs index 2b5d6e9c..1d7064ac 100644 --- a/scripts/automated-pr-review.mjs +++ b/scripts/automated-pr-review.mjs @@ -29,7 +29,7 @@ function getChangedFiles() { } console.log(`Fetching ${remote}/${baseRef} from ${baseUrl}...`); try { - execSync(`git fetch ${remote} ${baseRef} --depth=1`, { stdio: 'ignore' }); + execSync(`git fetch ${remote} ${baseRef}`, { stdio: 'ignore' }); } catch (e) { console.error(`Failed to fetch ${remote}/${baseRef}:`, e.message); }