mirror of
https://github.com/rennf93/roboco.git
synced 2026-08-03 07:23:24 +02:00
1.4 KiB
1.4 KiB
Git Commit Workflow
Commit Format
All commits are automatically prefixed with task ID:
[{task-id-prefix}] {message}
Example:
[a1b2c3d4] Add rate limiting endpoint
Creating Commits
roboco_git_commit(
project_slug="roboco",
task_id="a1b2c3d4-e5f6-7890-abcd-ef1234567890",
message="Add rate limiting endpoint"
)
This automatically:
- Prefixes commit with task ID (first 8 chars)
- Records commit in task's commit history
- Links to work session
Commit Message Types
| Type | Description |
|---|---|
feat |
New feature |
fix |
Bug fix |
docs |
Documentation |
style |
Formatting |
refactor |
Code restructure |
test |
Tests |
chore |
Maintenance |
perf |
Performance |
Full Commit Format
{type}({scope}): {description}
{body}
Task: {task-id}
Co-authored-by: {agent-name}
Before Committing
- Run tests:
uv run pytestorpnpm test - Run linter:
uv run ruff check .orpnpm lint - Run type check:
uv run mypy roboco/orpnpm typecheck - Format code:
uv run ruff format .orpnpm format
Push Commits
roboco_git_push(project_slug="roboco")
Push before:
- Submitting for QA
- Creating PR
- Ending work session
Viewing Commits
# View commit history
roboco_git_log(project_slug="roboco", branch="feature/backend/a1b2c3d4")
# View changes
roboco_git_diff(project_slug="roboco")