Add Gitea PR automation script
- Create automation/gitea-pr.sh for auto-creating PRs via Gitea API - Update CLAUDE.md with git workflow using the new script - Deprecate redundant git instructions in PA general-instructions.json - Token stored securely at ~/.config/gitea-token Usage: gitea-pr.sh "PR Title" "Description" 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
19
CLAUDE.md
19
CLAUDE.md
@@ -80,6 +80,25 @@ All agents MUST read and follow the processes defined in these files:
|
||||
- Session overrides in `state/sysadmin/session-autonomy.json`
|
||||
- See `state/autonomy-levels.json` for level definitions
|
||||
|
||||
### Git Workflow
|
||||
This repo uses Gitea (not GitHub). Follow this workflow:
|
||||
|
||||
1. **Create feature branch**: `git checkout -b feature/descriptive-name`
|
||||
2. **Commit work**: Make atomic commits with clear messages
|
||||
3. **Rebase onto main**: `git rebase origin/main`
|
||||
4. **Push branch**: `git push -u origin feature/branch-name`
|
||||
5. **Create PR**: `~/.claude/automation/gitea-pr.sh "PR Title" "Description"`
|
||||
6. **Merge with rebase** (after user approval):
|
||||
```bash
|
||||
git checkout main && git rebase feature/branch-name && git push
|
||||
```
|
||||
|
||||
Notes:
|
||||
- Use rebase, not merge commits
|
||||
- Stash uncommitted state files before switching branches
|
||||
- Delete feature branches after merge
|
||||
- Gitea token stored at `~/.config/gitea-token`
|
||||
|
||||
## Component Formats
|
||||
|
||||
| Component | Format | Location |
|
||||
|
||||
Reference in New Issue
Block a user