diff options
author | Omar Mekky <alphaengine@gmail.com> | 2018-04-04 18:04:03 +0300 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2018-04-04 18:04:03 +0300 |
commit | a069aa494a71450f3a6627b723bd5312bbf20133 (patch) | |
tree | 0d0916e3320b50d645068335b47a012eaf8c0a02 /app/models | |
parent | b15dd5dfa2ac269763d6342d7f0b3d9a64eb7fe4 (diff) |
Add banzai filter to detect commit message trailers and properly link the users
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/commit.rb | 3 |
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 |