Skip to content

app/: linking a project to its repository (sc-8900, forge) - #95

Closed
ndbroadbent wants to merge 2 commits into
laravel-forge-syncfrom
laravel-link
Closed

ndbroadbent wants to merge 2 commits into
laravel-forge-syncfrom
laravel-link

Conversation

@ndbroadbent

Copy link
Copy Markdown
Member

forge::link::link_repository(project, by, url, token, move_link), for features' update_project.

  • GitHub: the App must be installed on the repository.
  • GitLab (gitlab.com, or VISUALCI_GITLAB_URL): VisualCI's bot must be a Developer (VISUALCI_GITLAB_BOT_TOKEN).
  • Only an admin or maintainer of the repository on the forge may link it. The forge's permanent ID is stored.
  • A repository belongs to one organization. A link to one linked elsewhere is refused, naming that organization. With move_link it moves here instead: the other projects are unlinked, with a notice and an email to their admins.
  • An empty URL unlinks.
  • Linking and unlinking check open-source status straight away.
  • Every error is a 400 that says what's missing.
  • Tests: app/tests/link.rs (7 tests).

Self-managed GitLab instances are in the next PR. Stacked on #77. It will be retargeted to main when #77 merges.

…orge::link::link_repository(project, by, url, token, move_link) for GitHub (the App installed on the repository) and the GitLab of VISUALCI_GITLAB_URL (VisualCI's bot a Developer, VISUALCI_GITLAB_BOT_TOKEN); only an admin or maintainer of the repository on the forge may link it; the forge's permanent ID is stored; a repository belongs to one organization: linked elsewhere is refused naming it, or with move_link moved here, unlinking the other projects with a notice and an email to their admins; an empty URL unlinks; both check the repository's open source status at once; self-managed GitLab instances are refused as unknown until they're ported
…it's known, by URL only for links without one (as server/ does): a new repository under a deleted one's name isn't moved or told
@ndbroadbent

Copy link
Copy Markdown
Member Author

Included in #97.

@ndbroadbent ndbroadbent closed this Dec 3, 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