diff --git a/andax/ci/update_pr.rhai b/andax/ci/update_pr.rhai index bdbe3b0206..248f46bba5 100644 --- a/andax/ci/update_pr.rhai +++ b/andax/ci/update_pr.rhai @@ -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);