Skip to content
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

DEVPROD-5777 Skip sending GitHub status for disabled commit queue #7788

Merged
merged 6 commits into from
Apr 25, 2024

Conversation

bynn
Copy link
Contributor

@bynn bynn commented Apr 24, 2024

DEVPROD-5777

Description

sending a status for disabled evergreen queue will prevent some repos from merging if they require all checks to pass
the change will only make a github comment on the PR

Testing

staging
evergreen-ci/commit-queue-sandbox#692
does not send the status but writes the comment

@bynn bynn requested a review from a team April 24, 2024 00:49
if err == nil {
return nil
}

catcher := grip.NewBasicCatcher()
catcher.Wrap(thirdparty.SendCommitQueueGithubStatus(ctx, env, pr, message.GithubStateFailure, err.Error(), ""), "sending GitHub status update")
if !skipStatus {
catcher.Wrap(thirdparty.SendCommitQueueGithubStatus(ctx, env, pr, message.GithubStateFailure, err.Error(), ""), "sending GitHub status update")
Copy link
Contributor

Choose a reason for hiding this comment

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

Branch protection rules might apply even for projects that aren't using the new commit queue. Could we just remove this entirely and only post the comment in all cases? The original ticket / PR only ever really mentioned sending a comment. (#6499)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

removed!

@bynn bynn changed the title DEVPROD-5777 Skip sending GitHub status for disabled Evergreen commit queue DEVPROD-5777 Skip sending GitHub status for disabled commit queue Apr 25, 2024
@bynn bynn requested a review from ablack12 April 25, 2024 14:58
@bynn bynn merged commit 9c9e5df into evergreen-ci:main Apr 25, 2024
7 of 9 checks passed
@bynn bynn deleted the DEVPROD-5777 branch April 25, 2024 17:09
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.

2 participants