返回 Skill 列表
extension
分类: 开发与工程无需 API Key

rulebook-git-workflow

Git工作流标准,包括分支策略、提交约定和PR指南。在创建分支、编写提交信息、准备拉取请求或遵循git最佳实践时使用。

person作者: jakexiaohubgithub

Git Workflow Standards

Branch Naming

feature/<task-id>-<short-description>
fix/<issue-id>-<short-description>
refactor/<scope>-<description>
docs/<scope>-<description>

Commit Message Format

<type>(<scope>): <subject>

<body>

<footer>

Types

  • feat: New feature
  • fix: Bug fix
  • docs: Documentation
  • style: Formatting
  • refactor: Code restructuring
  • test: Adding tests
  • chore: Maintenance

Example

feat(auth): add JWT token validation

Implement JWT validation middleware for protected routes.

Closes #123

Pull Request Guidelines

PR Title

feat(scope): short description

PR Description

## Summary
Brief description of changes.

## Changes
- Change 1
- Change 2

## Testing
How this was tested.

## Checklist
- [ ] Tests pass
- [ ] Lint passes
- [ ] Documentation updated

Workflow Steps

  1. Create feature branch from main
  2. Make commits following conventions
  3. Run quality checks before push
  4. Create PR with description
  5. Address review feedback
  6. Squash and merge