Repository navigation
feat(compose): suggest compose files from the selected GitHub branch - #73
Merged
Merged
Conversation
The Compose Path field of a GitHub compose service was a plain text input, so the path had to be typed from memory. It is now a combobox: the path can still be typed, and a list under the field shows the compose files that exist in the selected branch, filtered by what has been typed. Arrow keys and Enter pick a file; Enter submits the form as before until a file is highlighted. A new github.getGithubComposeFiles query reads the branch tree in one recursive call and returns files whose name contains "compose" and ends in .yml/.yaml, as "./path" (the form the field already uses), shallowest first. It checks access to the git provider before reading the tree, like getGithubBranches. A missing branch or empty repository returns an empty list instead of an error. Only the GitHub provider gets the list for now; GitLab, Gitea and Bitbucket keep the plain input. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
What
The Compose Path field of a GitHub compose service is now a combobox: you can still type a path, and a list under the field shows the compose files that exist in the selected branch. Typing filters the list; clicking or Arrow keys + Enter picks a file.
github.getGithubComposeFiles(owner, repo, branch, githubId). It resolves the branch, reads its tree in one recursive call and returns files whose name containscomposeand ends in.yml/.yaml, as./path, shallowest first.getGithubBranches; registered asreadin procedure access.Only GitHub gets the list for now; GitLab, Gitea and Bitbucket keep the plain input.
Tests
__test__/git-provider/github-compose-files.test.ts: filtering and order, branch-name lookup with slashes, 404 → empty list, other errors pass through, compose name matcher.provider-router-security.test.ts: the query is rejected before the tree is read when provider access is denied.apps/dokployandpackages/server, biome, git-provider/permissions/api/security/compose test folders (695 tests) pass.🤖 Generated with Claude Code