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:
OpenCode Test
2026-01-04 12:52:54 -08:00
parent 2105803594
commit 02f9cf7d8f
3 changed files with 84 additions and 4 deletions

View File

@@ -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 |