create-pull-request
create-pull-request copied to clipboard
Two distinct PRs are created for the same branch and base
Running this action twice for the same branch and base creates two distinct PRs. Is this the expected behavior?
It wasn't designed as a feature per se but generally, I would say yes this is expected behaviour. GitHub's UI allows you to open to PRs for the same branch as well.
I see. The thing that seems strange is that only the PRs created to main branch are being duplicated for me. I have an action that creates a PR to develop and a PR to main, and if I run that action several times, only the ones to master are being duplicated. I'm creating the one to develop as a draft, could that make the difference?
I see. The thing that seems strange is that only the PRs created to main branch are being duplicated for me. I have an action that creates a PR to develop and a PR to main, and if I run that action several times, only the ones to master are being duplicated. I'm creating the one to develop as a draft, could that make the difference?
Potentially :) I haven't tested all these cases against GitHub's API to be honest.
Maybe have a look at GitHub's CLI as well. It comes pre-installed in all virtual environments and may have a feature for not duplicating an existing PR.