Skip to content

A plan on Forgejo pushes with a token and links to its own pages - #292

Merged
jcanton merged 2 commits into
mainfrom
remote-token
Nov 24, 2026
Merged

jcanton merged 2 commits into
mainfrom
remote-token

Conversation

@jcanton

@jcanton jcanton commented Nov 24, 2026

Copy link
Copy Markdown
Collaborator

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_USER and OPENPROJ_REMOTE_TOKEN: the token's owner and an access token with write access to the plan repository. Given to libgit2 as user and password. serve refuses half of the pair, and refuses it beside the App's variables.
  • OPENPROJ_PLAN_URL: the repository's web page, which the footer's plan and 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, otherwise serve refuses 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

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
jcanton marked this pull request as draft November 24, 2026 13:14
@jcanton
jcanton marked this pull request as ready for review November 24, 2026 16:23
@jcanton
jcanton merged commit 0b8ea81 into main Nov 24, 2026
20 of 22 checks passed
@jcanton jcanton mentioned this pull request Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant