relate_repositories
State that two repositories are related for AI code review, so a review of either may read the other. Organisation admins only. Use it for what the deploy graph cannot connect - a client and the API it calls, a shared library, a repository outside Ankra's deploy; applications installed on the same cluster are already related with no statement. The relationship is symmetric, so there is no mirror to add, and re-stating a pair changes nothing. Both repositories must be ones the named GitHub App installation can reach: Ankra checks that installation's live repository listing and refuses the pair otherwise, because the review fetches a related repository with that installation's own token. Returns the stored relationship.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repository | Yes | Repository path, owner/name. | |
| installation_id | Yes | Numeric id of the GitHub App installation the relationship belongs to, as a string. list_credentials with provider github reports installation_id for every GitHub App credential. | |
| related_repository | Yes | The other repository, owner/name. The relationship is symmetric, so which one is which does not matter. |