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

Add AFTER_MERGE_MESSAGE env variable to customize the message after merge #16

Merged
merged 1 commit into from
Dec 20, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion lib/ruboty/github/actions/merge_pull_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,18 @@ class MergePullRequest < CloseIssue

def close
request
message.reply("Merged #{issue.html_url}")
after_merge_message
end

def request
client.merge_pull_request(repository, issue_number)
end

def after_merge_message
message.reply("Merged #{issue.html_url}")
custom_message = ENV.fetch('AFTER_MERGE_MESSAGE', nil)
message.reply(custom_message) if custom_message
end
end
end
end
Expand Down