Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOmar Mekky <alphaengine@gmail.com>2018-04-04 18:04:03 +0300
committerDouwe Maan <douwe@gitlab.com>2018-04-04 18:04:03 +0300
commita069aa494a71450f3a6627b723bd5312bbf20133 (patch)
tree0d0916e3320b50d645068335b47a012eaf8c0a02 /app/models/commit.rb
parentb15dd5dfa2ac269763d6342d7f0b3d9a64eb7fe4 (diff)
Add banzai filter to detect commit message trailers and properly link the users
Diffstat (limited to 'app/models/commit.rb')
-rw-r--r--app/models/commit.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/models/commit.rb b/app/models/commit.rb
index b64462fb768..3f7f36e83c0 100644
--- a/app/models/commit.rb
+++ b/app/models/commit.rb
@@ -32,7 +32,8 @@ class Commit
COMMIT_SHA_PATTERN = /\h{#{MIN_SHA_LENGTH},40}/.freeze
def banzai_render_context(field)
- context = { pipeline: :single_line, project: self.project }
+ pipeline = field == :description ? :commit_description : :single_line
+ context = { pipeline: pipeline, project: self.project }
context[:author] = self.author if self.author
context