Merge pull request 'Add critical git workflow rules to CLAUDE.md' (#24) from feature/add-git-workflow-rules into main
Reviewed-on: deco/ice#24
This commit is contained in:
commit
5c3cb388cd
1 changed files with 29 additions and 0 deletions
29
CLAUDE.md
29
CLAUDE.md
|
@ -2,6 +2,35 @@
|
|||
|
||||
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
|
||||
|
||||
## ⚠️ CRITICAL RULES - READ FIRST
|
||||
|
||||
### Git Workflow - ABSOLUTELY MANDATORY
|
||||
- **NEVER COMMIT DIRECTLY TO MAIN/MASTER BRANCH**
|
||||
- **ALWAYS CREATE FEATURE BRANCHES FOR ANY CHANGES**
|
||||
- **USE TEA CLI FOR GIT.DECO.SH REPOSITORY**
|
||||
|
||||
### Required Git Workflow
|
||||
```bash
|
||||
# STEP 1: ALWAYS create a feature branch first
|
||||
git checkout -b feature/brief-description
|
||||
|
||||
# STEP 2: Make your changes and commit
|
||||
git add .
|
||||
git commit -m "Your commit message"
|
||||
|
||||
# STEP 3: Push branch and create PR using tea cli
|
||||
git push -u origin feature/brief-description
|
||||
tea pr create
|
||||
```
|
||||
|
||||
### Pre-Commit Checklist
|
||||
- [ ] Confirm you are NOT on main/master branch: `git branch --show-current`
|
||||
- [ ] Run tests: `npm test`
|
||||
- [ ] Run linting: `npm run lint`
|
||||
- [ ] Build succeeds: `npm run build`
|
||||
|
||||
**VIOLATION OF THESE RULES IS UNACCEPTABLE**
|
||||
|
||||
## Development Commands
|
||||
|
||||
### Running the Application
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue