Repository navigation
[GH-P6] Repo picker : dépôts de l'installation, liaison projet, accès perdu - #241
Merged
Merged
Conversation
…ost-access banner)
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.
P6: GitHub App repo picker
GET /api/v1/github-app/repositories?q=&installation_id=&refresh=1:github_installation_reposcache.refresh=1reloads it fromGET /installation/repositories(per_page=100, all pages, 50 pages max) using the installation token.GithubRepoPicker.tsx: search, "privé" badge, default branch, empty state with an install button, refresh.NewGithubAppWizard.tsx: picking a repo through the app links the new project (PUT /api/v1/projects/{uuid}/github-link) before its first deploy, with no PAT.ProjectGitPanel.tsx: re-link an existing project.github_installation_id,github_repo_id, the URL, and the branch (the chosen one, else the current one, else the default branch). It is refused if the repo is not accessible to the installation.GET /api/v1/projects/{uuid}/github-linkreturnslost=truewhen the project is linked but the repo has left the installation or the installation is suspended. In that case the Git panel shows an "Accès GitHub perdu" banner.Tests
crates/githubrepos::tests: mocked pagination over 2 pages (130 repos); errors contain no token.github_repos::tests: filtering and sorting; configure URL for a user vs an org.GithubRepoPicker.test.tsx: empty state, search, private badge, selection, refresh.