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
Empty PRs being created, is this expected? #2862
Comments
The action is nothing surprising, but actually looking at it now perhaps I should be using
|
Hi @dsyme Please take a look at this example. I think this is what you are trying to do. I don't think using |
Thanks! My scenario is a little different - we have two branches The problem is that merge commits always appear - and this really stems from the fact that the GitHub UI doesn't support PRs that are fast-forward merges, so the act of merging a PR always leaves a merge commit, squash or rebase of some kind in the commit history. This means that you end up with an endless infinite ping pong of empty merge commits between the two branches. I found a workaround which is like this. But I do wonder if this could be the default behaviour. Thank you for the GH action btw, it's very useful!
|
Maybe to avoid the merge commits you could try this in your workflow:
Apologies if I misunderstood and this doesn't work. 😄 |
I'm getting situations where empty PRs are being created - that is there's a merge commit being added, but the diffs are empty.
Reading the docs it feels like these PRs shouldn't be created, I'm wondering if there's something I'm doing wrong.
The text was updated successfully, but these errors were encountered: