-
Notifications
You must be signed in to change notification settings - Fork 28
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
Feature request: allow specifying mainline #341
Comments
Hi @houserx-jmcc 👋 and thanks for raising this! I ran into a case where I also needed this. The pull requests were updated with the recent changes from the target branch with merge commits. Could you share you're use-case/workflow? It may help me prioritize this feature. |
Thanks! We are working through some changes to our development flows, so I wouldn't say we have an explicit path at the moment, but it seems that some way or another we find ourselves often needing to cherry pick upwards or downwards from a merge commit 🙃 |
With #340 completed and released in 1.3.0, I'm deciding what to implement next. Are you still in need of this feature @houserx-jmcc? |
A nice to have, but our initial need for it has waned a bit so no need to prioritize it above other things. Thank you for checking in! |
We've hit this problem ourselves... the Because we accept PRs from anyone via developer forks, we cannot stop the developer from updating their PR via a merge commit (or rebase the PR to remove the merge commit). Unfortunately, anytime they do so, this backport-action fails & we have to perform a manual cherry-pick instead. So, I agree it'd be nice if there was a way for this action to somehow skip (or support) merge commits in a more automated manner! |
Thanks for sharing this @tdonohue. It helps me prioritise this issue knowing that more users are running into it. I can't promise when I'll find time for it with it being summer and all, but now this one is next on my list of improvements for backport-action. |
A first version of this is available for testing in Note that the only usable values at this time are:
When disabled, the behavior is as before, i.e. the action fails when it encounters a merge commit and reports about its failure. Using It is not yet possible to use It is not yet possible to skip merge commits. That may be a useful behavior for @tdonohue I'd love to know whether the |
@korthout : I gave it a try on our end. Unfortunately, the |
Thanks for your feedback @tdonohue. It is very helpful. I am now quite convinced that the common use case requires skipping the merge commits. We can continue this in a separate issue. I also think that this feature request is no longer needed, so I'll close this issue. But, if anyone sees a use case for setting a default mainline then please let me know. Feel free to reopen this issue. |
Allow specifying a default mainline to use when cherry picking and if supplied use it, i.e.
git cherry-pick 1234567 -m 1
. Since this action can be used in very specific workflows (like my use case!), this could be a useful option to specify.Example:
The text was updated successfully, but these errors were encountered: