feat(watchpr): poll GitHub PRs alongside Gitea #32

Merged
benvin merged 7 commits from benvin/watchpr-github into main 2026-11-22 16:50:50 +11:00
Member

watchpr only polled Gitea, so GitHub-hosted IUCLabs PRs had no poller.

  • Accepts github:owner/repo#N and GitHub PR URLs (trailing path, query or fragment ignored), mixable with Gitea refs
  • Polls as the reviewer app, re-minting before expiry and on 401; falls back to anonymous with a warning
  • Shared app-token change: agentgh also re-mints installation tokens near expiry instead of caching one forever
  • Merges commit statuses with all pages of check runs, re-read every poll
  • Pauses on rate limits until reset (max 15m), not counted as poll failures
  • Counts issue comments, review comments and reviews, ignoring GITHUB_AGENT_LOGINS
watchpr only polled Gitea, so GitHub-hosted IUCLabs PRs had no poller. - Accepts `github:owner/repo#N` and GitHub PR URLs (trailing path, query or fragment ignored), mixable with Gitea refs - Polls as the reviewer app, re-minting before expiry and on 401; falls back to anonymous with a warning - Shared app-token change: agentgh also re-mints installation tokens near expiry instead of caching one forever - Merges commit statuses with all pages of check runs, re-read every poll - Pauses on rate limits until reset (max 15m), not counted as poll failures - Counts issue comments, review comments and reviews, ignoring `GITHUB_AGENT_LOGINS`
unkin-agent added 1 commit 2026-11-22 01:51:37 +11:00
feat(watchpr): poll GitHub PRs alongside Gitea
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline failed
ci/woodpecker/pr/test Pipeline was successful
161a33c2ed
unkin-agent added 1 commit 2026-11-22 01:53:01 +11:00
style: gofmt githubpr_test
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful
c4471975a3
unkin-agent added 3 commits 2026-11-22 02:01:18 +11:00
unkin-agent added 1 commit 2026-11-22 02:07:26 +11:00
fix(watchpr): re-read GitHub CI every poll and page through check runs
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful
08340cce22
unkin-agent added 1 commit 2026-11-22 14:38:54 +11:00
docs(watchpr): describe rate-limit pause and 403 token re-mint accurately
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful
7b9511500b
benvin merged commit cb54c67be1 into main 2026-11-22 16:50:50 +11:00
benvin deleted branch benvin/watchpr-github 2026-11-22 16:50:50 +11:00
Sign in to join this conversation.