You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adds a new action input that selects the merge strategy for cherry-picks.
"default" preserves existing behavior; "whitespace_tolerant" passes
-Xignore-space-at-eol to git, resolving conflicts caused by trailing-
whitespace divergence between branches.
Empty string is coerced to "default" (GitHub Actions passes explicit ""
when the input is omitted). Invalid values fail-fast with an error message
before any backport PR is created.
constmessage=`Invalid value for \`cherry_picking_merge_mode\`: \`${cherry_picking_merge_mode}\`. Accepted values: \`default\`, \`whitespace_tolerant\`.`;
59
+
console.error(message);
60
+
core.setFailed(message);
61
+
return;
62
+
}
63
+
52
64
if(merge_commits!="fail"&&merge_commits!="skip"){
53
65
constmessage=`Expected input 'merge_commits' to be either 'fail' or 'skip', but was '${merge_commits}'`;
54
66
console.error(message);
@@ -120,7 +132,11 @@ async function run(): Promise<void> {
0 commit comments