Cross-Repo Analysis is always on for Enterprise organizations.
Overview
Gitar checks your PR against related repositories under the same owner and code host in your Gitar organization, and reports what the change breaks in them. Repositories are related by more than imports. A route path, an event name, or a database column that two repositories have to agree on ties them together, with no shared package between them.Automatic scanning
Relevant repositories within the supported scope, on every review. Nothing to link.
Unlimited repositories
Unlimited connected repositories within the supported scope.
Beyond imports
A route, an event name, or an error code ties two repositories together. No shared package required.
Every supported code host
Available on supported code hosts. Repositories in a comparison must share the same code host and owner boundary.
What it catches
How it works
1
Gitar finds relevant repositories within scope
It selects from connected repositories within the repository visibility limits.
2
Gitar asserts your diff against those repositories
Each impact is verified against your PR before you see it.
3
Gitar reports what breaks and how to keep it working
Each finding points to the line in your PR that changed the contract and names the affected repository, file, and function. Suggested adjustments can keep the change backward compatible or sequence the rollout to avoid a runtime failure.A finding says which end to fix. Some are yours to hold in this PR, some are a follow-up in the other repository, and some need a change at both ends to land safely.
Findings are labeled Cross-Repo and post inline like any other code review finding.
Inspect Cross-repo findings
Enterprise organization members can open Dashboard -> Cross-repo to explore repository connections and filter findings by repository, status, or fix location. To leave specific repositories out, see Naming and excluding repositories. Select a finding to inspect the changed and affected repositories. Expand Technical details to see the original finding and suggested fix location.Linked repositories
Linked Repositories lists connected repositories, including those with no findings. Select a repository to see its neighbors and open the findings in either direction. Repository and date filters carry through to those findings. Connections discovered from dependency declarations can appear before a review finds a problem. A connection marked Declared in manifest has no finding to open until an impact is recorded.Coverage
Gitar builds a summary of a repository the first time it reviews one, and refreshes it as the repository changes. Nothing to enrol, no backfill to run. Coverage builds as Gitar reviews more repositories within the supported scope. The first reviews after connecting repositories may have limited cross-repo context.Repository visibility
Cross-repository comparisons stay within the same Gitar organization, code host, and owner boundary. Both repositories must be connected to that Gitar organization.
Being within these boundaries makes a repository available for consideration; it does not mean every review compares every repository. Gitar selects relevant repositories using the context available for the change.
A PR is matched only against repositories its readers could already see.
Visibility also limits comparisons. A PR in a public repository can be compared only with other public repositories. A PR in a private repository can be compared with public or private repositories within the same scope.
A public PR therefore never surfaces a finding that names a private repository or describes its contents.
Connecting repositories from different owners or code hosts does not enable comparisons between them. Previously recorded findings remain available even if a repository is outside the current comparison scope.
Naming and excluding repositories
Gitar gets this right in most cases. To customize it, commit.gitar/cross-repo.md and describe the relationships in natural language: which repositories depend on this one, what has to stay consistent between them, and what to leave alone.
Related
For interactions between related open PRs, use Cross-PR Analysis. Cross-Repo Analysis checks shared contracts. Knowledge supplies team conventions and connected context, while Functional Validation checks the requirements the PR claims to implement.Code Review
How findings are posted, resolved, and tracked
Insights
Where the Cross-Repo category is reported across your organization
The Gitar Dashboard
The comment the Code Review section lives in
Plans
What each plan includes