fix(ci): add special case for PRing to branch, no backports required

This commit is contained in:
madonuko
2026-02-07 16:08:05 +08:00
parent cc11a162ce
commit 257d028dac
+5 -1
View File
@@ -10,7 +10,7 @@ fn pr(branch, dir, spec) {
sh(`git reset HEAD ${dir}`, #{});
return;
}
sh(`gh pr create --title '[${branch}] bump(${labels.scope}): ${spec}' --body 'Automatic bump from CI'`, #{});
sh(`gh pr create --title '[${branch}] bump(${labels.scope}): ${spec}' --body 'Automatic bump from CI\n\nnosync'`, #{});
sh(`git reset --hard HEAD^`, #{});
}
@@ -21,6 +21,10 @@ for dir in filelist {
if dir.is_empty() { continue; }
let spec = cfg::load_file(`${dir}/anda.hcl`).project.pkg.rpm.spec;
spec.pop(5); // remove `.spec` suffix
if labels.scope == "branch" {
sh(`git commit -S -m "bump(${labels.scope}): ${spec}" ${dir}`, #{});
continue;
}
sh(`git stash push -m "bump(${labels.scope}): ${spec}" -- ${dir}`, #{});
pr("frawhide", dir, spec);
pr("f43", dir, spec);