Sha256: 67805feeee451bb4a82c743b9ead4f30b90b4374b824df9eac4142e17bdaee4f
Contents?: true
Size: 706 Bytes
Versions: 1
Compression:
Stored size: 706 Bytes
Contents
# frozen_string_literal: true module Ruboty module Github module Actions class MergePullRequest < CloseIssue private def close request 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) target_repository = ENV.fetch('AFTER_MERGE_MESSAGE_TARGET_REPOSITORY', '') return unless (repository == target_repository) && custom_message message.reply(custom_message) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ruboty-qiita-github-0.3.3 | lib/ruboty/github/actions/merge_pull_request.rb |