Add a local N variable to let the backporter specify which version is targeted.
Use upstream/main instead of main for the base branch to compare (in case the local branch is not up-to-date / contains unrelated commits, it minimizes the risks of errors).
Add -S flag to git cherry-pick so git signs the backport commits.
The changes on this PR:
N
variable to let the backporter specify which version is targeted.upstream/main
instead ofmain
for the base branch to compare (in case the local branch is not up-to-date / contains unrelated commits, it minimizes the risks of errors).-S
flag togit cherry-pick
so git signs the backport commits.