Repository navigation
app/: linking a project to its repository, and checks and pull request comments on the forge (sc-8900) - #97
Merged
Merged
Conversation
ndbroadbent
force-pushed
the
laravel-reports
branch
from
December 2, 2026 23:41
73a50cd to
b9486fc
Compare
ndbroadbent
force-pushed
the
laravel-gitlab
branch
from
December 2, 2026 23:41
880f982 to
8662daf
Compare
…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
…ported): BuildChanged queues forge::checks::ReportCheck (a GitHub check run, or a GitLab commit status through VisualCI's GitLab bot, per suite) and forge::pr_comment::PostPrComment (one comment per project and pull request, edited in place), both debounced per build; one post at a time per build's check and per pull request's comment (advisory locks, read under them); a retry finds VisualCI's comment already on the pull request and edits it; a rate limit releases the job until it resets; the comment's hash leaves out its images' signatures; the comment's Markdown has golden files
ndbroadbent
force-pushed
the
laravel-reports
branch
from
December 3, 2026 01:26
cee7fc5 to
81c6d7b
Compare
This was referenced Dec 3, 2026
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.
Linking a project to its repository, then checks and pull request comments on the forge (sc-8900), merged as one PR before cutover. #95 was reviewed in its own PR and is closed as included here.
forge::link::link_repositoryfor GitHub (the App installed on the repository) and VisualCI's own GitLab (its bot). Only an admin or maintainer of the repository may link it, and the forge's permanent ID is stored. A repository belongs to one organization. A repository linked elsewhere matches by the forge's ID when it's known, and by URL only for links without one, so a new repository under a deleted one's name isn't moved. Self-managed GitLab instances are refused as unknown until sc-8634.BuildChangedqueuesforge::checks::ReportCheck(a GitHub check run, or a GitLab commit status through VisualCI's GitLab bot, per suite) andforge::pr_comment::PostPrComment(one comment per project and pull request, edited in place; no new comment when every suite is unchanged unlesscomment_when_unchangedis on). Both are debounced per build.Not in this PR: GitLab instances (#96, parked until sc-8634). Callers of link_repository (PATCH project over MCP and the web route) must check org admin; that's features' UI-pages PR.
fmt, clippy
-D warningsand the full app suite pass on docspring-dev.