Merge pull request #1591 from PR0M3TH3AN/fix-ci-upstream-fetch-7572206809803325118

Fix CI upstream fetch depth for agent review
This commit is contained in:
thePR0M3TH3AN authored and GitHub committed 2026-01-23 11:42:40 -05:00
commit a47bfd5bb3
2 files changed
+6 -1

No files matched your search

+5
View File
@@ -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 }}
+1 -1
View File
@@ -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);
}