Skip to content
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

Two distinct PRs are created for the same branch and base #163

Open
franciscohanna92 opened this issue Aug 31, 2021 · 3 comments
Open

Two distinct PRs are created for the same branch and base #163

franciscohanna92 opened this issue Aug 31, 2021 · 3 comments

Comments

@franciscohanna92
Copy link

franciscohanna92 commented Aug 31, 2021

Running this action twice for the same branch and base creates two distinct PRs. Is this the expected behavior?

@franciscohanna92 franciscohanna92 changed the title Duplicated PR Two distinct PRs are created for the same branch and base Aug 31, 2021
@thomaseizinger
Copy link
Owner

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.

@franciscohanna92
Copy link
Author

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?

@thomaseizinger
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants