lib/gitlab/release/changelog/entry.rb in gitlab-release-tools-0.1.0 vs lib/gitlab/release/changelog/entry.rb in gitlab-release-tools-0.2.0
- old
+ new
@@ -9,23 +9,24 @@
def initialize(id, title)
@id = id
@title = title
end
- def to_s
- "[#{@id}] #{@title}"
+ # @param [Boolean] with_reference
+ def to_s_with_reference(with_reference)
+ "- #{title}"
end
end
class MergeRequest < Entry
- def to_s
- "- #{title} !#{id}"
+ def to_s_with_reference(with_reference)
+ with_reference ? "- #{title} !#{id}" : super
end
end
class Issue < Entry
- def to_s
- "- #{title} ##{id}"
+ def to_s_with_reference(with_reference)
+ with_reference ? "- #{title} ##{id}" : super
end
end
end
end
end
\ No newline at end of file