Tag
tag
GitTagTool — one-shot semver tag: preflight + compute + create + verify + push.
GitTagTool
Bases: AXMTool
Create a semver release tag in one call.
Performs preflight checks (clean tree, CI status), computes the next version from Conventional Commits, creates an annotated tag, verifies hatch-vcs resolution, and pushes to origin.
Registered as git_tag via axm.tools entry point.
Source code in packages/axm-git/src/axm_git/tools/tag.py
206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 | |
name
property
Tool name used for MCP registration.
execute(*, path='.', version=None, **kwargs)
Create and push a semver tag.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path
|
str
|
Project root (required). |
'.'
|
version
|
str | None
|
Version override (optional, e.g. |
None
|
Returns:
| Type | Description |
|---|---|
ToolResult
|
ToolResult with tag, version, and push status. |