Repository navigation
feat: allow approved sibling repositories in host-listed namespaces - #4200
Open
JokeWaumans wants to merge 1 commit into
Open
JokeWaumans wants to merge 1 commit into
JokeWaumans wants to merge 1 commit into
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
⚙️ Agent run details
|
JokeWaumans
force-pushed
the
sibling-namespaces
branch
from
October 20, 2026 09:25
9d1f904 to
e9c000e
Compare
JokeWaumans
commented
Oct 20, 2026
JokeWaumans
force-pushed
the
sibling-namespaces
branch
from
October 20, 2026 09:54
fbbd22b to
2c1a2f7
Compare
IsmaelMartinez
left a comment
Collaborator
There was a problem hiding this comment.
Thanks @JokeWaumans for laying out the 16-submodule case so clearly. I'd like to hold this for now. The owning-namespace check is what ties an approved sibling to the projects that may consume it, and this list lifts that for every repository the host reviews, so an approved sibling's diffs or files could be posted into any project's MR that points at it, not only your product's. For one product's layout that is a wide trade, and pre-v1 we are keeping to fixes (#3147). Could you open an issue with the setup, so we can see whether others need it and whether a per-consumer mapping is the better shape?
This branch has not been deployed
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.
User description
What
Adds a host-only
config.repo_context_sibling_namespaces, empty by default. It listsorg/group/workspace names, besides the reviewed repository's own, that an already-approved
repo_context_sibling_reposentry may resolve into.Why
Sibling resolution currently requires the sibling to share the reviewed repository's
top-level namespace, which assumes a project's dependencies live beside it. Where they
don't, there is no way to opt in: one of our products pins 16 submodules spread over 5
groups and none in its own, so
gitlab.expand_submodule_diffsdrops every one of them.Scope
repo_context_sibling_repos..pr_agent.tomland comment arguments cannot set it.A shared
GitProvider.is_sibling_namespace_allowed()replaces the inline comparison in theGitLab submodule and sibling-file paths and in GitHub's
get_sibling_repo.PR Type
Enhancement, Tests, Documentation
Description
Allow approved siblings across host-listed namespaces.
Preserve repository allowlists and requester access checks.
Apply shared checks across GitHub and GitLab.
Document configuration and test namespace security boundaries.
File Walkthrough
2 files
Restrict sibling namespace configuration to host settingsDefine empty default for sibling namespace allowlist3 files
Add shared sibling namespace approval helperAllow host-approved namespaces when resolving GitHub siblingsApply namespace approvals to siblings and submodules2 files
Update expected configuration count for new settingTest namespace approval and retained security checks1 files
Document host-only additional sibling namespace configuration⚙️ Agent run details