提交 f088caca 编写于 作者: R Rubén Dávila 提交者: Robert Speicher

Use a reference to the MR when reverting MRs.

上级 5ad78cdb
......@@ -220,7 +220,13 @@ class Commit
end
def revert_message
"Revert \"#{title}\"".truncate(80) + "\n\nReverts #{sha}"
description = if merged_merge_request
"Reverts #{@merged_merge_request.to_reference}"
else
"Reverts #{sha}"
end
"Revert \"#{title}\"".truncate(80) + "\n\n#{description}"
end
def merge_commit?
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册