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
add [optional] update kwarg to create_tag() #725
Conversation
This PR is based on top of #724 |
If True, this will force the update of an existing annotated tag. Defaults to False.
f335aec
to
904b7de
Compare
Repushed to fix flake8 warning. |
'email': 'example@example.com', | ||
'date': '2015-11-01T12:16:00Z', | ||
}, | ||
}, |
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.
Unless I'm missing something, this doesn't validate that the call went through update_ref
instead of create_ref
. Is there a way you could validate that instead?
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.
Why does the internal call chain matter? This is a behavioral test that verifies that the given input produces the desired result.
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.
Because as a unit test, we want to ensure the right decision path is used, and that the code path you've added is exercised. We should at least see patch
called instead of post
.
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.
This needs to test patch vs post better, and it probably needs an integration test (which I can help with)
This isn't mergeable. I think I'd be happy to merge a new PR that adds the |
If True, this will force the update of an existing annotated tag. Defaults to
False.