Skip to content

Automatically comment if a PR doesn't meet the style guide #453

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
Jan 29, 2021

Conversation

17cupsofcoffee
Copy link
Collaborator

🤖 🤖 🤖

One common problem we have with the newsletter each month is misformatted PRs - sometimes people submit them and then don't check whether the build has passed, which means @ozkriff and me have to chase them up. This seemed like it should be a really easy thing to automate, and that turned out to be the case :)

I've tested this PR on a fork of the repo, and it seems to work okay (and it's using an official GitHub action package, so should be reasonably stable). It currently comments every time a PR build fails, but I could limit it to once per PR if we want - what do people think?

image

I also amended the run conditions for the CI job to not run multiple builds per PR.

@ozkriff
Copy link
Member

ozkriff commented Jan 29, 2021

Wow, that was quick! 🚀

@17cupsofcoffee
Copy link
Collaborator Author

😄

@17cupsofcoffee 17cupsofcoffee merged commit 9a0b054 into source Jan 29, 2021
@17cupsofcoffee 17cupsofcoffee deleted the 17cupsofcoffee-patch-1 branch January 29, 2021 20:51
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