Skip to content

Commit

Permalink
Merge pull request #13 from increments/add-message-on-merge-failed
Browse files Browse the repository at this point in the history
Add message on merge failed
  • Loading branch information
atm-snag2 committed Aug 4, 2023
2 parents 4666ef5 + b73393e commit 9753ef3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/ruboty/github/actions/close_issue.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ def call
rescue Octokit::NotFound
message.reply('Could not find that issue')
rescue StandardError => e
raise e
message.reply("Failed by #{e.class}")
raise e
end

private
Expand Down
2 changes: 1 addition & 1 deletion lib/ruboty/handlers/github.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class Github < Base
)

on(
/merge #{ISSUE_PATTERN}\z/o,
/merge\s+#{ISSUE_PATTERN}\z/o,
name: 'merge_pull_request',
description: 'Merge pull request'
)
Expand Down

0 comments on commit 9753ef3

Please sign in to comment.