Repository navigation
Forgejo/Gitea: How should the Inbox and hover cards recognise a self-hosted instance? #3759
|
I added Forgejo and Gitea pull request reviews to Plannotator.
Next, I want a Forgejo link to work like a GitHub link. In a document, the link must show a hover card. In the Inbox, the link must give an action to start a review. For this, Plannotator must know which forge a link points to. Plannotator finds the forge from the host name of the link. It knows github.com, gitlab.com, bitbucket.org, and codeberg.org. For GitLab on a private server, the user adds the host to gitlabHosts. A Forgejo server can have any host name, so Plannotator cannot find it alone.
|
Replies: 1 comment
|
Here are direct answers and design recommendations for each of your four points: 1. Host Recognition: A Hybrid Approach (A + B)The cleanest pattern is combining A and B:
2. Codeberg.org HandlingYes, treat
3. Feature Parity & Incremental MergingMerging initial link/card recognition first is the right approach.
4. PR Strategy: Stacked PRsA stacked series of focused PRs is much easier to review and test than a monolithic PR:
|
Here are direct answers and design recommendations for each of your four points:
1. Host Recognition: A Hybrid Approach (A + B)
The cleanest pattern is combining A and B:
forgejoHosts(Option A):forgejoHosts: string[]config array (matching the existinggitlabHostsconvention). This allows public or unauthenticated read-only instances to be recognized without requiring a …