Several Forges, merged into one queue
Red Pen shows pull requests from any number of Accounts, on GitHub, Forgejo and Gitea, merged into one Review Queue and one Your Pulls, rather than being a GitHub app with a switcher.
Its job is to be the one place that says what's waiting on you; checking a second place brings back the problem it's
for. So the domain (redpen_core::Pull and what decides its list) knows nothing of any Forge, and each Forge's code
in redpen-forges only turns that Forge's answers into Pulls.
Consequences #
- The model is what every Forge can answer, not all GitHub can: GitHub's own review decision and code owners go unused, and "approved" means someone approved with nothing outstanding.
- Forgejo and Gitea need several calls a pull request (the pull request, its reviews, its checks), with no ETags, so
a refresh costs more there than on GitHub's one GraphQL query. Their search mixes team requests in with your own,
and a query string (
q) would drop the team ones, so Red Pen separates them itself and never sends one. - A pull request is named by Account as well as by repository and number (
Pull::key), so holds stay with the Account that saw it.
Phin Tech docs
Red Pen in the store →