-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: cherry-pick multiple commits in the correct order #115
Conversation
Coverage report
Test suite run success175 tests passing in 16 suites. Report generated by 🧪jest coverage report action from e06c3a9 |
ccfcb8e
to
6a3d20b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there's something I'm not sure about, in that with this fix (for github at least) the reverse
is applied twice:
- when mapping the original pr https://github.com/kiegroup/git-backporting/pull/115/files#diff-6e3804f9a1581e5155295a17bbbc71343fa375a15bf5383dd4c4049a44be09cdR64
- when it has to scroll and cherry-pick the commits https://github.com/kiegroup/git-backporting/pull/115/files#diff-80854020f781d333495ba48208afccf09b44b58790aae94b10731f47b78e86ebR149
This means that at the end you are applying the commits in the same order as it was before 🤔
I need to check this a bit more
Ok I think we have two options here:
|
That's a leftover of a earlier attempt, my bad. And good catch. |
That sounds better. I'll go with that now that I better understand where's what. |
yeah I agree with you. It could be useful to add something like this git-backporting/test/service/runner/cli-github-runner.test.ts Lines 683 to 685 in fe6be83
This way you can assure what is the last call of that method |
Thanks for the hint, exactly what I was looking for ❤️ |
Should be better now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be better now.
Indeed, sounds great! Merging this ❤️
Fixes: #114