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

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