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); }