GitLab steht wegen Wartungsarbeiten am Montag, den 10. Mai, zwischen 17:00 und 19:00 Uhr nicht zur Verfügung.

Commit f088caca authored by Rubén Dávila's avatar Rubén Dávila Committed by Robert Speicher

Use a reference to the MR when reverting MRs.

parent 5ad78cdb
......@@ -220,7 +220,13 @@ def revert_branch_name
def revert_message
"Revert \"#{title}\"".truncate(80) + "\n\nReverts #{sha}"
description = if merged_merge_request
"Reverts #{@merged_merge_request.to_reference}"
"Reverts #{sha}"
"Revert \"#{title}\"".truncate(80) + "\n\n#{description}"
def merge_commit?
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment