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

_tag.atom.builder « tags « projects « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 1d5b6832357e37e271628d07488369a07cefd1e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# frozen_string_literal: true

commit = @repository.commit(tag.dereferenced_target)
release = @releases.find { |r| r.tag == tag.name }
tag_url = project_tag_url(@project, tag.name)

if commit
  xml.entry do
    xml.id      tag_url
    xml.link    href: tag_url
    xml.title   truncate(tag.name, length: 80)
    xml.summary strip_signature(tag.message)
    xml.content markdown_field(release, :description), type: 'html'
    xml.updated release.updated_at.xmlschema if release
    xml.media   :thumbnail, width: '40', height: '40', url: image_url(avatar_icon_for_email(commit.author_email))
    xml.author do |author|
      xml.name  commit.author_name
      xml.email commit.author_email
    end
  end
end