Monorepo for Tangled tangled.org

Feat: add mirror indicator #442

open opened by knotbin.com

Mirrored repositories won't automatically mirror for you, but it will display as mirrors do on GitHub:

  • Mirror link displayed under repo name, "mirrored from "
  • Pull requests and issues disabled/hidden

For an example, see https://github.com/chromium/crashpad

The easiest path on the lexicon side would be to add a mirror string (URL format) property to the repo record, and enable mirroring if the property is present

yup! this was the intention with the source field on repo records. i want to add another field for source_type which could be either a fork, mirror, import, template etc.

nit: we can make source as open enum type instead of adding additional field. So we can either put object using "at-uri" format or just "uri" there.

That's great to hear! So glad this is coming so repos like npmx don't have to plaster [READ-ONLY] all over.

My main questions are: Does adding a source also disable issues/PRs? Does it work with non-AT-URIs? Are there any plans to allow people to manually add a source field from the UI?

  • adding source will not disable issues/PRs, that could be a separate option
  • yes it will work with non-aturis (once we add other source types like mirror/import/template)
  • unsure about this one, maybe? ideally the appview would populate this correctly from the get go

Wdym populate correctly from the get-go? How would that work with mirrors from other forges without manually adding a link to the source repo?

there would be a button on the UI to "import" or "mirror", and the av will setup the right source+type fields!

so this would only work for new mirrors not for existing mirrored repos?

sign up or login to add to the discussion
Labels

None yet.

area

None yet.

assignee

None yet.

Participants 3
AT URI
at://did:plc:6hbqm2oftpotwuw7gvvrui3i/sh.tangled.repo.issue/3mgxb543pky22