Git Repositories

get

Return list of active repositories in the organization

🔒 Requires the read:package permission

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
installation_idstringOptional

App installation ID for the repository

Example: 12345678
Responses
200

List of active repositories

application/json
get
/api/v1/git/repos
post

Register a new trigger for the git repository

🔒 Requires the create:package permission

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
installation_idstringRequired

App installation ID for the repository

Example: 12345678
repostringRequired

Repository name with owner

Example: organization/repository
git_refstringRequired

The git branch name the package was created from

Example: main
pathstringRequired

The git subdirectory path of the package repository

Example: path/to/subdirectory
packagestringOptional

The package name e.g. @bluebricks/aws-vpc

Example: @bluebricks/aws-vpc
Responses
200

Trigger registered successfully

application/json
post
/api/v1/git/register
put

Activate git trigger

🔒 Requires the create:package permission

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
triggerIdstring · uuidRequired

Unique identifier for the git trigger

Example: 123e4567-e89b-12d3-a456-42661417400
Responses
200

Updated trigger information for the git repository

application/json
put
/api/v1/git/trigger
delete

Deactivate git trigger

🔒 Requires the create:package permission

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
triggerIdstring · uuidRequired

Unique identifier for the git trigger

Example: 123e4567-e89b-12d3-a456-42661417400
Responses
200

Updated trigger information for the git repository

application/json
delete
/api/v1/git/trigger
post

Return git credentials for the publisher within the organization

🔒 Requires the read:package permission

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
git_remote_urlstringOptional

The git remote url of the package repository

Example: https://github.com/username/repository.git
Responses
200

Git credentials for the publisher within the organization

application/json
post
/api/v1/git-credentials

Last updated

Was this helpful?