mirror of
https://github.com/kiegroup/git-backporting.git
synced 2025-05-10 18:53:43 +00:00
fix: return GitHub no-squash commits in order (#115)
Fixes: https://github.com/kiegroup/git-backporting/issues/114
This commit is contained in:
parent
fe6be83074
commit
6d9b9db590
5 changed files with 6 additions and 6 deletions
2
dist/cli/index.js
vendored
2
dist/cli/index.js
vendored
|
@ -1469,7 +1469,7 @@ class Runner {
|
|||
}
|
||||
// 7. apply all changes to the new branch
|
||||
this.logger.debug("Cherry picking commits..");
|
||||
for (const sha of originalPR.commits) {
|
||||
for (const sha of originalPR.commits.reverse()) {
|
||||
await git.gitCli.cherryPick(configs.folder, sha, configs.mergeStrategy, configs.mergeStrategyOption, configs.cherryPickOptions);
|
||||
}
|
||||
if (!configs.dryRun) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue