Skip to content

Don't confirm branch status when release_label configured #65

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

Merged
merged 1 commit into from
May 25, 2021
Merged

Don't confirm branch status when release_label configured #65

merged 1 commit into from
May 25, 2021

Conversation

f1sherman
Copy link
Contributor

@f1sherman f1sherman commented May 25, 2021

At least once every couple weeks I think I released some code via git release and come back to my console hours later (or the next day) to find it sitting on the Branch status is currently: pending. Proceed with release? (y/n) prompt.

This prompt is really helpful when there isn't too much churn on the main branch, but with high churn it's likely to show up a lot more often. Moreover, it's less important when using a merge tool via release_label because gitx isn't merging the code directly and the merge tool will presumably be confirming the build status before merging the code.

This seemed like a pragmatic (if not a little magic) change. I could see an alternative to this being the ability to suppress the prompt via a separate config variable instead of automatically when release_label is used. Let me know if you'd like to see that (or something else) instead.

At least once every couple weeks I think I released some code via `git
release` and come back to my console hours later (or the next day) to
find it sitting on the `Branch status is currently: pending.  Proceed
with release? (y/n)` prompt.

This prompt is really helpful when there isn't too much churn on the
main branch, but with high churn it's likely to show up a lot more
often. Moreover, it's less important when using a merge tool via
`release_label` because `gitx` isn't merging the code directly and the
merge tool will presumably be confirming the build status before merging
the code.

This seemed like a pragmatic (if not a little magic) change. I could see
an alternative to this being the ability to suppress the prompt via
a separate config variable instead of automatically when `release_label`
is used.
@f1sherman f1sherman mentioned this pull request May 25, 2021
@coveralls
Copy link

Coverage Status

Coverage remained the same at 99.609% when pulling 9c498c0 on f1sherman:dont-confirm-branch-status-for-release-label into 7ddb2ae on wireframe:main.

Copy link
Owner

@wireframe wireframe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1. I agree that the confirm sanity check is not relevant when using merge labels.

@wireframe wireframe merged commit 5d7d4ae into wireframe:main May 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants