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:
olekhondera
2026-03-06 19:04:43 +02:00
parent 6c644ddaf1
commit cf86a91e4a
9 changed files with 62 additions and 33 deletions

View File

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

View 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