mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-01 22:10:23 +00:00
ci
This commit is contained in:
parent
0d53f34c43
commit
b9e9c8c763
1 changed files with 2 additions and 2 deletions
|
|
@ -49,9 +49,9 @@ async function main() {
|
|||
continue
|
||||
}
|
||||
|
||||
// Get diff from PR base to PR head and apply it
|
||||
// Get diff from dev to PR head (PR's changes)
|
||||
console.log(` Getting diff for PR #${pr.number}...`)
|
||||
const diff = await $`git diff HEAD...pr-${pr.number}`.nothrow()
|
||||
const diff = await $`git diff dev..pr-${pr.number}`.nothrow()
|
||||
if (diff.exitCode !== 0) {
|
||||
console.log(` Failed to get diff for PR #${pr.number}`)
|
||||
console.log(` Error: ${diff.stderr}`)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue