stable

Clone or download

Read-only

feat: List only repositories where branch can be created

If a repository can be read but branch cannot be created (no write on repository, or fine grained permissions that prevents creation of some branches), then the repository should not be listed in the modal when you want to create a git branch from an artifact. Part of story #26803: create Tuleap Git branch & pull request from artifact Change-Id: I620c5fcb7857b55eb71c8c62f5bb93bf5b7cc8cc

Modified Files

Name
M plugins/git/include/GitRepositoryFactory.class.php +0 −38 Go to diff View file
M plugins/git/include/REST/v1/GitProjectResource.php +97 −23 Go to diff View file
A plugins/git/include/REST/v1/PaginatedRepositoriesRetriever.php +120 −0 Go to diff View file
M plugins/git/scripts/artifact-create-branch-action/api/rest_querier.test.ts +2 −2 Go to diff View file
M plugins/git/scripts/artifact-create-branch-action/api/rest_querier.ts +8 −2 Go to diff View file
M plugins/git/scripts/artifact-create-branch-action/src/modal.ts +1 −1 Go to diff View file
A plugins/git/tests/unit/REST/v1/PaginatedRepositoriesRetrieverTest.php +192 −0 Go to diff View file