-
-
Notifications
You must be signed in to change notification settings - Fork 51
Add option to no-op if target branch is up-to-date. #83
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm struggling with 2 things:
- when is that useful?
- the name of the option sounds confusing
I've got some code in automation to port changes between two repositories, and then create a pull-request with the result. There sometimes isn't any changes that would result, in which case the code creates a branch that matches the upstream branch.
I don't have strong feelings on the name, and agree that it isn't the clearest. I didn't have any better ideas, though. |
It sounds like you can already do this by catching the exit code |
_format_github_exception("create pull request", e) | ||
) | ||
return 50 | ||
if allow_noop and any(( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's fine to fail with that. I'd just not add a new option for that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.
No update in a while, closing. |
Mergifyio/git-pull-request#83 was rejected. Let's work around the issue on our side. Fixes #13.
Fixes #82.