Add variable %{latest_tag} available for badge link and url
Could you please add a variable with the last tag (eg : %{latest_tag}
) available for badges link and url.
Implementation Guide
- Update the
app/models/badge.rb
to includelast_tag
in thePLACEHOLDERS
hash, e.g.:
'last_tag' => -> (project) { TagsFinder.new(project.repository, PARAMS).execute }
- Update the documentation, as
doc/user/project/badges.md
anddoc/api/project_badges.md
- Update the
app/assets/javascripts/badges/components/badge_settings.vue
to address new variable. - Add missing tests, verify that badge has been displayed correctly, etc.
Edited by Christina Lohr