-
Notifications
You must be signed in to change notification settings - Fork 13
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
Support custom messages (per project) #54
Conversation
{ "url": "https://www.theguardian.com", "overdue": "20M", "messages": { "seen": "prout/seen.md", "overdue": "prout/overdue.md" } } The value for each status would be the path of a file contained in the repository The file content would be appended to the comment if set. If no custom message is set, the default string 'Please check your changes!' would be appended
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! Only thing you might want to do is add support for this new feature to the config diagnostic screen (eg on https://prout-bot.herokuapp.com/view/guardian/frontend, where you get feedback on whether Prout has successfully read all your conifg) - but I think it's ok to merge without it.
test/lib/Helpers.scala
Outdated
.futureValue | ||
.lastOption | ||
.map(_.body) | ||
.getOrElse("") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I often use .mkString
instead of .getOrElse("")
, as they're equivalent.
f8f543d
to
edb901b
Compare
edb901b
to
855e471
Compare
Here's the first comment to use this new help: |
I noticed a small issue with the diagnostic page: I will push a fix when I can. |
Implementation of #52
Allow devs to specify for each checkpoint a set of files (one per status) which content would be appended to the PR comment.