Add gitea-pr script and PR review workflow #1

Merged
branderson merged 9 commits from worktree-gitea-pr-review-workflow into master 2026-07-12 18:49:37 -07:00
9 Commits
Author SHA1 Message Date
branderson 7b1bae082f Read Gitea token from a dedicated file instead of a global env var
Addresses PR #1 feedback: GITEA_TOKEN shouldn't be exported globally
(visible to every process in the shell), only to gitea-pr itself.
Defaults to ~/.config/gitea/token (chmod 600); GITEA_TOKEN env var
still works as an override for one-off invocations.
2026-07-12 18:47:06 -07:00
branderson 6bd015fe25 Make GITEA_SSH_HOST/GITEA_API required env vars, fetch inline review comments
Addresses PR #1 feedback: host config should live in the environment
(~/.profile.local), not be hardcoded in the script, with a clear error
if unset. Also fixes gitea-pr comments to surface inline diff comments
from reviews, not just issue comments and top-level review bodies --
the review that requested this change would have been invisible to
gitea-pr comments without this fix.
2026-07-12 18:35:39 -07:00
branderson a5bda2fd77 Remove stale SC2034 suppressions now that GITEA_API/owner/repo are used 2026-07-12 18:00:50 -07:00
branderson 988086d9b1 Implement gitea-pr merge 2026-07-12 17:45:37 -07:00
branderson a0e2dc269e Implement gitea-pr comments 2026-07-12 17:35:44 -07:00
branderson 782ba516ca Fix silent crash in base-branch fallback when origin/HEAD symref is unset 2026-07-12 17:32:21 -07:00
branderson c6bdd09aae Split Gitea SSH host from API host (gitbox.branderson.io is HTTPS-only, gitbox.bradina.localdomain is SSH-only) 2026-07-12 17:09:45 -07:00
branderson 933b6a3971 Fix SC2034 warnings with narrow inline suppressions instead of loosening shellcheck invocation 2026-07-12 16:41:22 -07:00
branderson 97a631b335 Add gitea-pr script skeleton with host/owner/repo detection 2026-07-12 16:29:37 -07:00