Skip to content

Commit 6900877

Browse files
authored
Merge pull request #19 from increments/fix-bug-of-fallback
Fix bug of merge_pull_request action return value
2 parents 46fb0a4 + 9e668df commit 6900877

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ruboty/github/actions/merge_pull_request.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def after_merge_message
2121
custom_message = ENV.fetch('AFTER_MERGE_MESSAGE', nil)
2222
target_repository = ENV.fetch('AFTER_MERGE_MESSAGE_TARGET_REPOSITORY', '')
2323

24-
return unless (repository == target_repository) && custom_message
24+
return true unless (repository == target_repository) && custom_message
2525

2626
message.reply(custom_message)
2727
end

0 commit comments

Comments
 (0)