Add PR validation before creating PRs

- Create validate-pr.sh: runs shellcheck, JSON/YAML/Python syntax checks
- Update gitea-pr.sh: runs validation before creating PR
- Update CLAUDE.md: document PR review policy
  - ~/.claude repo: linting/validation only
  - Code repos: full code-reviewer agent review

🤖 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 13:06:31 -08:00
parent 02f9cf7d8f
commit 652ceb55f0
3 changed files with 100 additions and 0 deletions

View File

@@ -98,6 +98,14 @@ Notes:
- Stash uncommitted state files before switching branches
- Delete feature branches after merge
- Gitea token stored at `~/.config/gitea-token`
- PRs show as "closed" (not "merged") after rebase - expected
### PR Review Policy
| Repo Type | Review Process |
|-----------|----------------|
| ~/.claude | Linting/validation only (shellcheck, JSON/YAML syntax, Python syntax) |
| Code repos | Full review via code-reviewer agent before user approval |
## Component Formats