-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add AFTER_MERGE_MESSAGE env variable to customize the message after merge #16
Conversation
|
||
def after_merge_message | ||
message.reply("Merged #{issue.html_url}") | ||
message.reply(ENV.fetch('AFTER_MERGE_MESSAGE', nil)) if ENV.fetch('AFTER_MERGE_MESSAGE', nil) |
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.
nits
message.reply(ENV.fetch('AFTER_MERGE_MESSAGE', nil)) if ENV.fetch('AFTER_MERGE_MESSAGE', nil) | |
message.reply(ENV.fetch('AFTER_MERGE_MESSAGE', nil)) if ENV.fetch('AFTER_MERGE_MESSAGE', false) |
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 fixed it
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.
LGTM
912a528
to
ee43e40
Compare
Code Climate has analyzed commit ee43e40 and detected 0 issues on this pull request. View more on Code Climate. |
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.
LGTM
What
Implemented the after_merge_message method in Ruboty::Actions::MergePullRequest