mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 07:52:24 +00:00
fix(ci): fix upstream fetch depth in agent review (agent)
Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
1 parent
03334f6b21
commit
fbd4c217c2
2 files changed
+6
-1
No files matched your search
@@ -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 }}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user