Create A Merge Proposal

Record a request to merge a source branch into a target branch. Anyone with edit access can open one; merging it later is gated on write access to the target branch, so this is how a change reaches a protected branch the author cannot merge into themselves.

Parâmetros de caminho

agent_idstringObrigatório

O ID de um agente. Ele é retornado na criação do agente.

Cabeçalhos

xi-api-keystringOpcional

Solicitação

This endpoint expects an object.
source_branch_idstringObrigatório
Branch whose changes should be merged.
target_branch_idstringObrigatório
Branch that should receive the changes.
titlestringObrigatório1-140 characters

Short title for the merge_proposal.

descriptionstringOpcional<=4096 charactersPadrão é
Optional longer description for reviewers.
requested_reviewer_user_idslist of strings or nullOpcional
User IDs to request a review from.
triage_ticket_idstring or nullOpcional

Triage ticket of this agent that the merge_proposal resolves. Merging it resolves the ticket if still open.

Resposta

Resposta bem-sucedida

created_merge_proposal_idstring

ID of the created merge_proposal

Erros

422
Unprocessable Entity Error