Closed bentonjimmy closed 2 years ago
The issue seems to be with this line: https://github.com/devops-infra/action-pull-request/blob/master/entrypoint.sh#L99
This line is checking if the source/head has any other PR open where it is the source/head. If it retrieves a value, this value is later used for PATCH-ing the PR.
I think this line of code should be checking for a pre-existing PR that has the same source/head and target/base.
Opened a PR with the change: https://github.com/devops-infra/action-pull-request/pull/100
Thank you for this change :)
Had the same issue with v0.4.2.
Thanks for this fix, really helped us when we were creating new Actions again.
:memo: Issues when opening multiple PRs in a single workflow
In my workflow, I am attempting to use this component to open a PR to branches within the repo. I'm looking to open a PR that updates two different branches with the main branch. What actually happens, thought, is that one PR is opened and the second attempt to open a PR results in the component PATCH-ing the first PR. I expected this to open two different PRs to two different branches.
The workflow I'm using is below. I originally tried this with a matrix and had the same issue.