Git Provider Connections

Open a pull request through one of your git connections

Changed on

Uses the token of a connection you own. The head branch must already exist, for example after committing to it. Another user's connection answers 404.

post/git-connections/{connection_id}/repositories/{owner}/{repo}/pull-requests

Request

  • Base URL: /api (relative, and the document was published on a file host, not at the API’s origin)
  • URL: /api/git-connections/{connection_id}/repositories/{owner}/{repo}/pull-requests
  • Auth: HTTP bearer

Path parameters

connection_idinteger required

Connection ID

ownerstring required

Repository owner

repostring required

Repository name

Request body

base_branchstring nullable

Branch to merge into. Defaults to the repository's default branch.

bodystring nullable
head_branchstring required

Branch holding the changes.

titlestring required

Response

Pull request opened

base_branchstring required
connection_idinteger required
head_branchstring required
numberinteger required
repositorystring required
titlestring required
urlstring required

Changes