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.rbto includelast_tagin thePLACEHOLDERShash, e.g.:
'last_tag' => -> (project) { TagsFinder.new(project.repository, PARAMS).execute }
- Update the documentation, as
doc/user/project/badges.mdanddoc/api/project_badges.md - Update the
app/assets/javascripts/badges/components/badge_settings.vueto address new variable. - Add missing tests, verify that badge has been displayed correctly, etc.
Edited by Christina Lohr