Package com.egoge.ai.atlas.plugin
Class TagName
java.lang.Object
com.egoge.ai.atlas.plugin.TagName
agentic { release { tagName } } : the git tag a released version is proved by (F1). The
template has exactly one {version} placeholder, and renders to a valid git ref name.
Only the exact rendered name counts as a match: "1.0.0" never stands in for
"v1.0.0", and neither does a pre-release such as "v1.0.0-rc.1".-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe default template, used unlessagentic { release { tagName } }overrides it. -
Method Summary
Modifier and TypeMethodDescriptionOptional<com.egoge.ai.atlas.processor.release.ReleaseVersion>Whethertagis exactly this template rendered for a release version.static TagNameParses atagNametemplate.render(com.egoge.ai.atlas.processor.release.ReleaseVersion version) Renders the tag name forversion.
-
Field Details
-
DEFAULT_TEMPLATE
The default template, used unlessagentic { release { tagName } }overrides it.- See Also:
-
-
Method Details
-
parse
Parses atagNametemplate.- Parameters:
template- the configured template, such as "v{version}"- Returns:
- the parsed template
- Throws:
org.gradle.api.GradleException- if it has no "{version}", more than one, or does not render a valid git ref name
-
render
Renders the tag name forversion.- Parameters:
version- the released version- Returns:
- the tag name, such as
"v1.4.0"
-
match
Whethertagis exactly this template rendered for a release version.- Parameters:
tag- a tag name read from the repository- Returns:
- the version it renders, or empty when
tagdoes not match this template
-