Repositories API
A repository is a Git repository a project's code lives in: its provider, the account that owns it, its name, the branch releases are cut from, whether it is private and which component it builds.
A repository is a Git repository a project's code lives in: its provider, the account that owns it, its name, the branch releases are cut from, whether it is private and which component it builds. The registry is kept by hand until Git hosting is connected; from then on the same rows carry the connection and the branches, commits and pull requests that link work items to code. A repository that falls out of use is disconnected, which keeps its row and its history and takes it out of the live list.
The reads here see the repositories of the projects the token may see, staff only: a client guest's token reads none, because where the code lives is the team's business. A repository outside that set is a 404 RESOURCE_NOT_FOUND, never a 403. Every write runs the same action the Repositories page runs, under the project permissions, and announces itself as a repository.* event.
Endpoints
/v1/repositories/{repository}Get a repositoryPATCH/v1/repositories/{repository}Update a repositoryDELETE/v1/repositories/{repository}Delete a repositoryGET/v1/projects/{project}/repositoriesList repositoriesPOST/v1/projects/{project}/repositoriesRegister a repositoryPOST/v1/repositories/{repository}/disconnectDisconnect a repositoryPOST/v1/repositories/{repository}/reconnectReconnect a repositoryRelated
How is this guide?
Last updated on