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

.github: show diff when gofmt check fails #20

Merged
merged 1 commit into from
Feb 22, 2021

Conversation

tklauser
Copy link
Member

Rather than just failing the check, also show the diff.

Rather than just failing the check, also show the diff.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
@tklauser tklauser requested a review from rolinh February 22, 2021 09:41
@rolinh
Copy link
Member

rolinh commented Feb 22, 2021

Note: package workerpool doesn't have any external dependency so I actually don't expect this check to ever fail :)

@tklauser
Copy link
Member Author

Note: package workerpool doesn't have any external dependency so I actually don't expect this check to ever fail :)

I think it still can fail for PRs where contributors don't run gofmt automatically (e.g. via editor integration) on their changes, no?

@rolinh
Copy link
Member

rolinh commented Feb 22, 2021

@tklauser Oh yes, good point I missed that!

@rolinh rolinh merged commit 49b09df into master Feb 22, 2021
@rolinh rolinh deleted the pr/tklauser/gh-action-gofmt-show-diff branch February 22, 2021 10:25
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