git-xargs
git-xargs copied to clipboard
git-xargs should open PRs even if it did not commit any changes
I think, git-xargs should always open PRs even if the given command did not change anything locally or if the push returns already up-to-date. The reason why I use your great tool, is that I want to merge some changes in to my main-branch. I don't care if the tool does these changes, commit them and push them to the branch I passed to the tool, or if these changes already exists in the remote branch, as long as a PR is opened so I can merge my changes into main.
Thanks for opening the issue. This does seem like the right behavior. I'm not going to be able to get to this soon, but a PR to fix this is very welcome.
Hey, sadly I don't speak go. The Issue is not urgent for me, so I can wait.
Hello again,
I am now in a situation again, where it would be great, if the PR would be opened even if the push did not change anything. I changed over 100 repositories, sadly after less then 50 PRs the max numbers of PR retries where reached. So now I have to either remove the branches or open all PRs by hand.
Workaround: add the following commands at the top of the script which git-xargs executes to do the changes:
git push -d origin <branchname>
git checkout main
git branch -D <branchname>
git checkout -b <branchname>
Make sure