Commit fb24b25c authored by Rémy Coutable's avatar Rémy Coutable

Merge branch 'fix-generated-screenshot-names' into 'master'

Strip extension from screenshot filename

See merge request gitlab-org/gitlab!44012
parents 79d36849 77827850
......@@ -22,7 +22,7 @@ end
def rename_image(file, milestone)
path = File.dirname(file)
basename = File.basename(file)
basename = File.basename(file, ".*")
final_name = File.join(path, "#{basename}_v#{milestone}.png")
FileUtils.mv(file, final_name)
end
......
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