PR-18 #18

Merged
ecdown merged 12 commits from pullone into main 2026-09-30 00:04:47 -07:00
Showing only changes of commit f7036c59b8 - Show all commits
+13 -3
View File
@@ -100,11 +100,21 @@ bazel build --spawn_strategy=standalone //:run
// 1. Determine target branch and fetch changes
def targetBranch = env.CHANGE_TARGET ?: 'main'
sh "git fetch origin ${targetBranch}"
// 2. Identify changed files relative to the target branch
sh """
git fetch origin \
+refs/heads/${targetBranch}:refs/remotes/origin/${targetBranch}
"""
 
def mergeBase = sh(
script: "git merge-base HEAD origin/${targetBranch}",
returnStdout: true
).trim()
 
echo "Merge base: ${mergeBase}"
 
def changedFiles = sh(
script: "git diff --name-only origin/${targetBranch}...HEAD",
script: "git diff --name-only ${mergeBase} HEAD",
returnStdout: true
).trim()