Skip to content
This repository was archived by the owner on Jul 19, 2025. It is now read-only.

Conversation

mrgilman
Copy link
Contributor

https://trello.com/c/q3ByzTqY

When analysis for a commit is skipped because a newer commit was pushed
to the branch, we want to set the status to "success" so that it isn't
stuck in a yellow "pending" state, but we also want to indicate that
analysis didn't run on the skipped commit. So we differentiate the
skipped case with a different status message. Also, never add a comment
for a commit that we have skipped, regardless of the config settings.

elsif config.update_status
update_status_success
elsif config.add_comment
add_comment
Copy link
Contributor

Choose a reason for hiding this comment

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

My spidey sense is tingling about this change around config.add_comment.

Are there any conditions where we want to call add_comment and not call update_status_success -- /cc @noahd1 @jonathancadepowers

https://trello.com/c/q3ByzTqY

When analysis for a commit is skipped because a newer commit was pushed
to the branch, we want to set the status to "success" so that it isn't
stuck in a yellow "pending" state, but we also want to indicate that
analysis didn't run on the skipped commit. So we differentiate the
skipped case with a different status message. Also, never add a comment
for a commit that we have skipped, regardless of the config settings.
@mrgilman mrgilman force-pushed the mg-ia-skipped-status-message branch from bf47706 to 206107d Compare March 17, 2015 18:12
@iancanderson
Copy link
Contributor

/cc @codeclimate/review this is ready for a re-review after making this PR compatible with the changes that went in master from #56

@marshally
Copy link
Contributor

:shipit:

iancanderson added a commit that referenced this pull request Mar 17, 2015
Update GitHub status description for skipped builds
@iancanderson iancanderson merged commit 4aa7dfa into master Mar 17, 2015
@iancanderson iancanderson deleted the mg-ia-skipped-status-message branch March 17, 2015 19:39
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants