Repository navigation
Ask which forge a project uses when its remotes are on both - #9
Open
HugoHeneault wants to merge 3 commits into
Open
HugoHeneault wants to merge 3 commits into
HugoHeneault wants to merge 3 commits into
Conversation
The answer goes to .bloom/settings.local.toml in the project's checkout, which every workspace already reads. Local because remotes are this machine's git config: a teammate with only the GitHub remote must not inherit it.
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.
🤖 Généré par Claude Opus 5.5
Step 7, on top of step 6. Part of the stack for GitLab support, issue 4 on spatie/bloom. Each PR targets the previous step, so its diff is this step alone.
A repository with a GitHub remote and a GitLab one (gitlab.com, or a host
glabis signed in to) used to resolve to GitHub silently, so a GitLab project mirrored to GitHub had to be set by hand in its settings. When such a project is added with nogit.forgedeclared andglabinstalled, Bloom now asks: GitLab, GitHub, or Not now. The message says GitHub is used until a forge is chosen.git.forgeto.bloom/settings.local.tomlin the project's checkout, whichForgeResolveralready reads for every workspace. Local rather than the shared file, because remotes are this machine's git config: a teammate with only the GitHub remote must not inherit it.glabprobe to an unreachable host does not hold the add up.glab: no question, no file written.Tests:
ForgeRoutingTests(hosts beside a GitHub remote, ask then remember, written to the local file only).swift build -Xswiftc -warnings-as-errors,make lintandmake swiftlintpass locally; the suite runs on CI.