Create forward port issues for merges into main

This reverts commit 4e884b27f8.

Closes gh-31148
pull/31156/head
Andy Wilkinson 3 years ago
parent 68bd9d6b6d
commit 430f033381

@ -27,7 +27,7 @@ end
def rewrite_message(message_file, fixed) def rewrite_message(message_file, fixed)
current_branch = `git rev-parse --abbrev-ref HEAD`.strip current_branch = `git rev-parse --abbrev-ref HEAD`.strip
if current_branch == "main" if current_branch == "main"
return nil current_branch = $main_branch
end end
rewritten_message = "" rewritten_message = ""
message = File.read(message_file) message = File.read(message_file)
@ -68,6 +68,4 @@ end
$log.debug "Searching for for forward merge" $log.debug "Searching for for forward merge"
fixed = get_fixed_issues() fixed = get_fixed_issues()
rewritten_message = rewrite_message(message_file, fixed) rewritten_message = rewrite_message(message_file, fixed)
unless rewritten_message.nil?
File.write(message_file, rewritten_message) File.write(message_file, rewritten_message)
end

Loading…
Cancel
Save