Commit f2374408 authored by Heinrich Lee Yu's avatar Heinrich Lee Yu

Merge branch '35269-use-title-not-full-title-for-mentionable' into 'master'

Use title, not full_title for commit mentionables

See merge request gitlab-org/gitlab!63869
parents bd88dd2c d33a2258
...@@ -38,7 +38,7 @@ class Commit ...@@ -38,7 +38,7 @@ class Commit
cache_markdown_field :description, pipeline: :commit_description, limit: 1.megabyte cache_markdown_field :description, pipeline: :commit_description, limit: 1.megabyte
# Share the cache used by the markdown fields # Share the cache used by the markdown fields
attr_mentionable :full_title, pipeline: :single_line, limit: 1.kilobyte attr_mentionable :title, pipeline: :single_line
attr_mentionable :description, pipeline: :commit_description, limit: 1.megabyte attr_mentionable :description, pipeline: :commit_description, limit: 1.megabyte
class << self class << self
......
...@@ -841,7 +841,7 @@ RSpec.describe Issuable do ...@@ -841,7 +841,7 @@ RSpec.describe Issuable do
it_behaves_like 'matches_cross_reference_regex? fails fast' it_behaves_like 'matches_cross_reference_regex? fails fast'
end end
context "note with long path string", quarantine: 'https://gitlab.com/gitlab-org/gitlab/-/issues/35269' do context "note with long path string" do
let(:project) { create(:project, :public, :repository) } let(:project) { create(:project, :public, :repository) }
let(:mentionable) { project.commit } let(:mentionable) { project.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