Skip to content

Commit

Permalink
Merge pull request #16 from increments/add-after-merge-message-env
Browse files Browse the repository at this point in the history
Add AFTER_MERGE_MESSAGE env variable to customize the message after merge
  • Loading branch information
getty104 committed Dec 20, 2023
2 parents 3ce5559 + ee43e40 commit 33d013a
Showing 1 changed file with 7 additions and 1 deletion.
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

0 comments on commit 33d013a

Please sign in to comment.