You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
3.1.2-beta5-17-g7c2d387
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:
3.1.2-beta5
And this can later be used when linking to code in that tag:
See the [setup](https://github.com/fralau/mkdocs_macros_plugin/blob/{{ git.short_tag }}/setup.py) code.
To the release itself:
See the [release notes for the latest release](https://github.com/fralau/mkdocs_macros_plugin/releases/tag/{{ git.short_tag }}).
Or, depending on the tag name, even adding code snippets such as:
Add it as a requirement:
extras_require={ 'test': ["some-package>={{ git.short_tag }}],}
The text was updated successfully, but these errors were encountered:
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:
The text was updated successfully, but these errors were encountered: