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

Refactor commit message for revert commit.

parent 02f48053
...@@ -221,12 +221,12 @@ class Commit ...@@ -221,12 +221,12 @@ class Commit
def revert_message def revert_message
description = if merged_merge_request description = if merged_merge_request
"Reverts #{@merged_merge_request.to_reference}" "This reverts merge request #{merged_merge_request.to_reference}"
else else
"Reverts #{sha}" "This reverts commit #{sha}"
end end
"Revert \"#{title}\"".truncate(80) + "\n\n#{description}" "Revert \"#{title}\"" + "\n\n#{description}"
end end
def merge_commit? 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