Repository navigation
Review GitLab, Gitea and Bitbucket repositories from Appwrite - #69
Merged
Merged
Conversation
Appwrite now sends review and chat jobs for GitLab, Gitea and Bitbucket installations, with the installation's OAuth token. - The token can name the provider's API root, so a self-hosted GitLab or Gitea is reached on its own host instead of GitLab.com or gitea.com. - Bitbucket repositories Appwrite names by their full name, `workspace/slug`, are addressed by that workspace. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01F3M7tuaHpj5WN6awCJZvos Co-authored-by: Torsten Dittmann <1759475+TorstenDittmann@users.noreply.github.com>
Code review
The Appwrite token adapter now carries a provider API endpoint through installation tokens, and the GitLab and Gitea factories use it for self-hosted instances. The Bitbucket factory parses workspace and slug from Appwrite's full-name repository identifier. Tests cover endpoint forwarding, self-hosted provider routing, and Bitbucket repository lookup. Walkthrough (10)
Reviewed Tip Comment |
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.

Requested by Torsten · project thread
What
Appwrite now sends review and chat jobs for GitLab, Gitea and Bitbucket installations (appwrite/appwrite#16057). The token endpoint hands back the installation's refreshed OAuth token. This PR makes the clients work with what Appwrite actually sends.
endpoint, the instance's API root (…/api/v4,…/api/v1).AppwriteInstallationTokenspasses it on, and the GitLab and Gitea factories use it ahead of the configured default, GitLab.com or gitea.com.workspace/slug. The factory now reads the workspace from that id instead ofowner, so the API path is/repositories/workspace/slug.Tests
endpointpassing throughAppwriteInstallationTokens.bun run lint,bun run checkandbun run testall pass locally (490 tests).Generated by Claude Code