Skip to main content
POST
Add a branch to the application's pipeline (browser session)

Authorizations

ankra_session
string
cookie
required

Browser session. Mutations also require X-Ankra-CSRF.

Path Parameters

application_id
string
required

Body

application/json
branch
string
required

One branch name or glob pattern, exactly as a branch rule holds it (no refs/ prefix, no spaces, not negated).

Response

Successful Response

application_id
string
required
branch
string
required

The pattern as it was proposed, trimmed.

state
enum<string>
required

opened: a pull request adding the pattern to on.push.branches was opened. already_covered: the pipeline on the default branch already runs on it, nothing was proposed. already_open: the pull request this lane opened for the pattern is still open.

Available options:
opened,
already_covered,
already_open
pull_request_url
string | null
required

The pull request; null when already_covered.

pull_request_number
integer | null
required

The pull request's number; null when already_covered.