docs: sync documentation with actual repo state; adapt for Gitea
- Remove all .github references (removed in 6c644dd but docs still referenced)
- Rewrite review-pr skill to use Gitea API instead of gh CLI
- Add gitea-pr.sh helper for Gitea API calls (view/diff/files/comments)
- Update project structure tree: add scripts/, .woodpecker.yml, ci-cd.md,
status-update-checklist.md, commit-docs-reminder.sh, RESEARCH-SDD-TOOLS.md
- Fix skills count 14 → 15 (add create-skill to DOCS.md)
- Remove .github references from CONTRIBUTING.md, SECURITY.md, init-project
- Add GITEA_TOKEN to .env.example
- Update CI/CD placeholder in RECOMMENDATIONS.md to Woodpecker
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -41,9 +41,7 @@ Guide the user through setting up a new project from this template.
|
||||
|
||||
5. **Update README.md** — Replace the template description in README.md with the actual project name and description.
|
||||
|
||||
6. **Update .github config** — Replace `YOUR_ORG/YOUR_REPO` in `.github/ISSUE_TEMPLATE/config.yml` with the actual repository path.
|
||||
|
||||
7. **Summary** — Show the user what was configured and suggest next steps:
|
||||
6. **Summary** — Show the user what was configured and suggest next steps:
|
||||
- Review filled documents
|
||||
- Create initial ADR for major stack decisions (`docs/adr/`)
|
||||
- Begin Phase 1 planning
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
---
|
||||
name: review-pr
|
||||
description: Review a specific GitHub pull request by number — fetches PR diff and comments via gh CLI, then provides structured review.
|
||||
description: Review a specific Gitea pull request by number — fetches PR diff and comments via Gitea API, then provides structured review.
|
||||
disable-model-invocation: true
|
||||
argument-hint: "[pr-number]"
|
||||
context: fork
|
||||
agent: code-reviewer
|
||||
allowed-tools: Bash(gh:*), Read, Grep, Glob
|
||||
allowed-tools: Bash(bash:*,curl:*,git:*), Read, Grep, Glob
|
||||
---
|
||||
|
||||
# Review Pull Request
|
||||
|
||||
Review GitHub PR #$ARGUMENTS.
|
||||
Review PR #$ARGUMENTS.
|
||||
|
||||
## Context
|
||||
|
||||
PR details:
|
||||
!`gh pr view $ARGUMENTS`
|
||||
PR details (JSON):
|
||||
!`bash .claude/skills/review-pr/gitea-pr.sh $ARGUMENTS view`
|
||||
|
||||
PR diff:
|
||||
!`gh pr diff $ARGUMENTS`
|
||||
!`bash .claude/skills/review-pr/gitea-pr.sh $ARGUMENTS diff`
|
||||
|
||||
PR comments:
|
||||
!`gh pr view $ARGUMENTS --comments 2>/dev/null || echo "No comments"`
|
||||
Changed files (JSON):
|
||||
!`bash .claude/skills/review-pr/gitea-pr.sh $ARGUMENTS files`
|
||||
|
||||
Changed files:
|
||||
!`gh pr diff $ARGUMENTS --name-only`
|
||||
PR comments (JSON):
|
||||
!`bash .claude/skills/review-pr/gitea-pr.sh $ARGUMENTS comments`
|
||||
|
||||
## Steps
|
||||
|
||||
@@ -33,7 +33,7 @@ Changed files:
|
||||
3. **Read relevant source files** for full context (not just the diff)
|
||||
4. **Verify dependencies** — check new packages for CVEs via context7
|
||||
5. **Check against project rules** — read `RULES.md`
|
||||
6. **Review in priority order:** Security → Reliability → Performance → Maintainability → Testing
|
||||
6. **Review in priority order:** Security > Reliability > Performance > Maintainability > Testing
|
||||
|
||||
7. **Report:**
|
||||
|
||||
|
||||
29
.claude/skills/review-pr/gitea-pr.sh
Executable file
29
.claude/skills/review-pr/gitea-pr.sh
Executable file
@@ -0,0 +1,29 @@
|
||||
#!/usr/bin/env bash
|
||||
# Fetch Gitea PR data via API
|
||||
# Usage: gitea-pr.sh <pr-number> [view|diff|files|comments]
|
||||
# Requires: GITEA_TOKEN env var (set in .env.local)
|
||||
set -euo pipefail
|
||||
|
||||
PR="${1:?Usage: gitea-pr.sh <pr-number> [view|diff|files|comments]}"
|
||||
CMD="${2:-view}"
|
||||
|
||||
REMOTE=$(git remote get-url origin 2>/dev/null)
|
||||
REMOTE="${REMOTE%.git}"
|
||||
|
||||
if [[ "$REMOTE" == git@* ]]; then
|
||||
HOST="${REMOTE#git@}"; HOST="${HOST%%:*}"
|
||||
REPO="${REMOTE#*:}"
|
||||
else
|
||||
tmp="${REMOTE#*://}"; HOST="${tmp%%/*}"; REPO="${tmp#*/}"
|
||||
fi
|
||||
|
||||
API="https://${HOST}/api/v1/repos/${REPO}"
|
||||
AUTH="Authorization: token ${GITEA_TOKEN:-}"
|
||||
|
||||
case "$CMD" in
|
||||
view) curl -sf -H "$AUTH" "${API}/pulls/${PR}" ;;
|
||||
diff) curl -sf -H "$AUTH" "${API}/pulls/${PR}.diff" ;;
|
||||
files) curl -sf -H "$AUTH" "${API}/pulls/${PR}/files" ;;
|
||||
comments) curl -sf -H "$AUTH" "${API}/issues/${PR}/comments" ;;
|
||||
*) echo "Unknown command: $CMD" >&2; exit 1 ;;
|
||||
esac
|
||||
Reference in New Issue
Block a user