Monorepo for Tangled tangled.org

compare link from knot behaves differently than from github #373

open opened by oppi.li

From the Cambridge EEG zulip:

15:25 Jon Ludlam

When you push to a forked tangled repo, and on the terminal it says 'create a PR at this link' - be warned, by default it'll create a PR to your own repo, not the repo it's forked from, unlike github!

the compare URL emitted offers a comparison between the new ref and the default ref on the same repo, but if the repo is a fork, we probably want to compare new ref to the default ref on the fork!

thanks @jon.recoil.org for the report.

oppi.li (author)

potential fix:

  • at the knotserver, we know the remote of the upstream repository, we can emit a link that prefills the "New PR" page with the correct details
  • at the appview, we need to permit prefilling more fields on the compare page

unlike github, where forks utilize the same bare git repository, we need to prefill the user + repository pair to identify the upstream repository.

sign up or login to add to the discussion
Labels
good-first-issue
area
knot
assignee

None yet.

Participants 1
AT URI
at://did:plc:qfpnj4og54vl56wngdriaxug/sh.tangled.repo.issue/3mckgoymcnd22