https://platform.codeclimate.com/schemas/pull-request
A Pull Request consists of a set of commits.
Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
---|---|---|---|---|---|---|---|
Can be instantiated | No | Unknown status | No | Forbidden | Allowed | none | PullRequest.schema.json |
object
(PullRequest)
Property | Type | Required | Nullable | Defined by |
---|---|---|---|---|
_type | string |
Required | cannot be null | PullRequest |
id | string |
Required | cannot be null | PullRequest |
self | string |
Required | cannot be null | PullRequest |
repository | Merged | Required | cannot be null | PullRequest |
author | Merged | Required | cannot be null | PullRequest |
state | Not specified | Required | cannot be null | PullRequest |
headRef | string |
Optional | cannot be null | PullRequest |
headSha | string |
Optional | cannot be null | PullRequest |
baseRef | string |
Optional | cannot be null | PullRequest |
baseSha | string |
Optional | cannot be null | PullRequest |
htmlUrl | string |
Optional | cannot be null | PullRequest |
statistics | object |
Optional | cannot be null | PullRequest |
mergedAt | string |
Optional | cannot be null | PullRequest |
createdAt | string |
Optional | cannot be null | PullRequest |
updatedAt | string |
Optional | cannot be null | PullRequest |
_type
- is required
- Type:
string
- cannot be null
- defined in: PullRequest
string
constant: the value of this property must be equal to:
"PullRequest"
The unique ID of this pull request.
id
- is required
- Type:
string
- cannot be null
- defined in: PullRequest
string
The canonical URI for this record.
self
- is required
- Type:
string
- cannot be null
- defined in: PullRequest
string
URI: the string must be a URI, according to RFC 3986
The self
URI of the repository, or a nested repository record.
repository
- is required
- Type: merged type (Details)
- cannot be null
- defined in: PullRequest
merged type (Details)
one (and only one) of
The self
URI of the author, or a nested author record.
author
- is required
- Type: merged type (Details)
- cannot be null
- defined in: PullRequest
merged type (Details)
one (and only one) of
The state of a pull request.
state
- is required
- Type: unknown
- cannot be null
- defined in: PullRequest
unknown
enum: the value of this property must be equal to one of the following values:
Value | Explanation |
---|---|
"open" |
|
"closed" |
|
"merged" |
The head ref associated with a pull request.
headRef
- is optional
- Type:
string
- cannot be null
- defined in: PullRequest
string
The head sha associated with a pull request.
headSha
- is optional
- Type:
string
- cannot be null
- defined in: PullRequest
string
The base ref associated with a pull request.
baseRef
- is optional
- Type:
string
- cannot be null
- defined in: PullRequest
string
The base sha associated with a pull request.
baseSha
- is optional
- Type:
string
- cannot be null
- defined in: PullRequest
string
The URL to view this pull request.
htmlUrl
- is optional
- Type:
string
- cannot be null
- defined in: PullRequest
string
URI: the string must be a URI, according to RFC 3986
pull request statistics.
statistics
- is optional
- Type:
object
(Details) - cannot be null
- defined in: PullRequest
object
(Details)
The time the pull request was merged.
mergedAt
- is optional
- Type:
string
- cannot be null
- defined in: PullRequest
string
date time: the string must be a date time string, according to RFC 3339, section 5.6
The time the pull request was created.
createdAt
- is optional
- Type:
string
- cannot be null
- defined in: PullRequest
string
date time: the string must be a date time string, according to RFC 3339, section 5.6
The time the pull request was updated.
updatedAt
- is optional
- Type:
string
- cannot be null
- defined in: PullRequest
string
date time: the string must be a date time string, according to RFC 3339, section 5.6