gruntwork-io / git-xargs

git-xargs is a command-line tool (CLI) for making updates across multiple Github repositories with a single command.
https://blog.gruntwork.io/introducing-git-xargs-an-open-source-tool-to-update-multiple-github-repos-753f9f3675ec
Apache License 2.0
935 stars 62 forks source link

Don't try to open PR if one is already open #34

Closed brikis98 closed 3 years ago

brikis98 commented 3 years ago

Fixes #32.

Key changes:

  1. Check if a PR already exists for a given branch before trying to open up a new one.
  2. Refactor the code a bit into a updateRepo method so that if the working tree reports itself as clean, we don't try to commit, push, or open a PR at all.
brikis98 commented 3 years ago

Hm, hold on, in manual testing, I'm hitting an issue... Looking into it.

brikis98 commented 3 years ago

Ah, OK, issue resolved.

zackproser commented 3 years ago

Great improvement! Mostly LGTM - left a question and a NIT.

brikis98 commented 3 years ago

Thanks for the review. Merging now.

brikis98 commented 3 years ago

https://github.com/gruntwork-io/git-xargs/releases/tag/v0.0.6