CreateChangeRequest
create change request
Path Parameters
- owner required
The owner of the repository, generally called "username". The name is not case sensitive.
- repo required
repository name, the name is not case sensitive
Header Parameters
- Authorization required
Oauth2 token or private token (needs to start with Bearer plus a space)
- application/json
Request Body
- title string
cr title
- body string
cr description
- head string
Source branch, when creating a cross-database CR, the format is: '[<src_org>|<src_username>]:<src_branch>'. If you create a change request for the same library, just pass <src_branch>.
- base string
Target branch, format: '<dst_branch>'
- draft boolean
true means creating a draft (in-progress) change request, false means creating a published change request. Default value: false
- 201
- 403
- 404
- 409
- responseBody
created
No Access
404 not found
conflict. There are remaining similar change requests under review.
- application/json
- Schema
Schema
- id string
cr id
- number integer
The number of the change request (short ID within the repo).
- state string
The status of the change request, enumeration values: open, closed.
- title string
cr title
- body string
cr description
- created_at string
cr created time. Follow ISO 8601 time format: YYYY-MM-DDTHH:MM:SSZ"
- updated_at string
cr updated time. Follow ISO 8601 time format: YYYY-MM-DDTHH:MM:SSZ"
- draft boolean
true means creating a draft (in-progress) change request, false means creating a published change request. Default value: false