Coverage for src / moai_adk / core / git / branch.py: 50.00%
2 statements
« prev ^ index » next coverage.py v7.12.0, created at 2025-11-20 20:52 +0900
« prev ^ index » next coverage.py v7.12.0, created at 2025-11-20 20:52 +0900
1"""
2Branch naming utilities.
4SPEC: .moai/specs/SPEC-CORE-GIT-001/spec.md
5"""
8def generate_branch_name(spec_id: str) -> str:
9 """
10 Generate a branch name from a SPEC ID.
12 Args:
13 spec_id: SPEC identifier (e.g., "AUTH-001").
15 Returns:
16 Branch name in the feature/SPEC-XXX format.
18 Examples:
19 >>> generate_branch_name("AUTH-001")
20 'feature/SPEC-AUTH-001'
22 >>> generate_branch_name("CORE-GIT-001")
23 'feature/SPEC-CORE-GIT-001'
24 """
25 return f"feature/SPEC-{spec_id}"