Closed marcospereira closed 10 months ago
Welcome to this project and thank you!' first issue
From a first examination, it makes sense.
Where would you use that statement?
extras_require={
'test': ["some-package>={{ git.short_tag }}],
}
Where would you use that statement?
In a markdown doc that describes how to use a dependency. I copied from this project itself. But think about this doc here:
https://jte.gg/#getting-started
The markdown source would be:
<dependency>
<groupId>gg.jte</groupId>
<artifactId>jte</artifactId>
<version>{{ git.short_tag }}</version>
</dependency>
The current
git.tag
attribute shows the full description of the tag, with a suffix including the number of additional commits on top of the tagged object and the abbreviated object name of the most recent commit. The current output would be:Where
-17-g7c2d387
is the suffix.While this is useful in some cases, having only the tag name with no suffix is useful when showing the latest release. The abbreviated tag name would be:
And this can later be used when linking to code in that tag:
To the release itself:
Or, depending on the tag name, even adding code snippets such as: