Repository navigation
A plan on Forgejo pushes with a token and links to its own pages - #292
Merged
Merged
Conversation
The store could push only to GitHub, with the App, or to a `file://` path. A self-hosted forge has no App, so `OPENPROJ_REMOTE_USER` and `OPENPROJ_REMOTE_TOKEN` now give it an access token, refused when half set or set beside the App's variables. `OPENPROJ_PLAN_URL` names the repository's web page for the footer, since a remote on the loopback is no page anybody can open. 🤖 Written by an agent on behalf of @jcanton
jcanton
marked this pull request as draft
November 24, 2026 13:14
jcanton
marked this pull request as ready for review
November 24, 2026 16:23
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
openproj could push only to GitHub (with the App) or to a
file://path. This adds a forge token for any other host, for plan-d's Forgejo on the Synology.OPENPROJ_REMOTE_USERandOPENPROJ_REMOTE_TOKEN: the token's owner and an access token with write access to the plan repository. Given to libgit2 as user and password.serverefuses half of the pair, and refuses it beside the App's variables.OPENPROJ_PLAN_URL: the repository's web page, which the footer'splanand commit link into. It overrides the page derived from a GitHub remote. It must be http(s) with a host and no userinfo, query or fragment, otherwiseserverefuses to start rather than silently drawing no link.Opening a pull request for a parked branch stays the App's. With a token the branch is left on the remote unannounced, as for any credential without
offer_pull_request. There is no test that pushes over http: the suite has no forge to push to, so the push is tested through the credential libgit2 receives.🤖 Written by an agent on behalf of @jcanton