# pull-request-simple

From **GitHub v3 REST API**.

Pull Request Simple

- Type: `object`

## Properties

### `_links`

- Required: true
- Type: `object`

### `active_lock_reason`

- Required: false
- Type: `string`
- Nullable: true
- Example: `too heated`

### `assignee`

- Required: true
- Type: `object`
- Nullable: true

Simple User

### `assignees`

- Required: false
- Type: `array`
- Nullable: true

### `author_association`

- Required: true
- Type: `string`
- Example: `OWNER`
- Allowed values: `"COLLABORATOR"`, `"CONTRIBUTOR"`, `"FIRST_TIMER"`, `"FIRST_TIME_CONTRIBUTOR"`, `"MANNEQUIN"`, `"MEMBER"`, `"NONE"`, `"OWNER"`

How the author is associated with the repository.

### `base`

- Required: true
- Type: `object`

### `body`

- Required: true
- Type: `string`
- Nullable: true
- Example: `Please pull these awesome changes`

### `closed_at`

- Required: true
- Type: `string`
- Format: `date-time`
- Nullable: true
- Example: `2011-01-26T19:01:12Z`

### `comments_url`

- Required: true
- Type: `string`
- Format: `uri`
- Example: `https://api.github.com/repos/octocat/Hello-World/issues/1347/comments`

### `commits_url`

- Required: true
- Type: `string`
- Format: `uri`
- Example: `https://api.github.com/repos/octocat/Hello-World/pulls/1347/commits`

### `created_at`

- Required: true
- Type: `string`
- Format: `date-time`
- Example: `2011-01-26T19:01:12Z`

### `diff_url`

- Required: true
- Type: `string`
- Format: `uri`
- Example: `https://github.com/octocat/Hello-World/pull/1347.diff`

### `draft`

- Required: false
- Type: `boolean`
- Example: `false`

Indicates whether or not the pull request is a draft.

### `head`

- Required: true
- Type: `object`

## JSON Schema

```json
{"description":"Pull Request Simple","properties":{"_links":{"properties":{"comments":{"$ref":"#/components/schemas/link"},"commits":{"$ref":"#/components/schemas/link"},"html":{"$ref":"#/components/schemas/link"},"issue":{"$ref":"#/components/schemas/link"},"review_comment":{"$ref":"#/components/schemas/link"},"review_comments":{"$ref":"#/components/schemas/link"},"self":{"$ref":"#/components/schemas/link"},"statuses":{"$ref":"#/components/schemas/link"}},"required":["comments","commits","statuses","html","issue","review_comments","review_comment","self"],"type":"object"},"active_lock_reason":{"example":"too heated","nullable":true,"type":"string"},"assignee":{"$ref":"#/components/schemas/nullable-simple-user"},"assignees":{"items":{"$ref":"#/components/schemas/simple-user"},"nullable":true,"type":"array"},"author_association":{"$ref":"#/components/schemas/author_association"},"base":{"properties":{"label":{"type":"string"},"ref":{"type":"string"},"repo":{"$ref":"#/components/schemas/repository"},"sha":{"type":"string"},"user":{"$ref":"#/components/schemas/nullable-simple-user"}},"required":["label","ref","repo","sha","user"],"type":"object"},"body":{"example":"Please pull these awesome changes","nullable":true,"type":"string"},"closed_at":{"example":"2011-01-26T19:01:12Z","format":"date-time","nullable":true,"type":"string"},"comments_url":{"example":"https://api.github.com/repos/octocat/Hello-World/issues/1347/comments","format":"uri","type":"string"},"commits_url":{"example":"https://api.github.com/repos/octocat/Hello-World/pulls/1347/commits","format":"uri","type":"string"},"created_at":{"example":"2011-01-26T19:01:12Z","format":"date-time","type":"string"},"diff_url":{"example":"https://github.com/octocat/Hello-World/pull/1347.diff","format":"uri","type":"string"},"draft":{"description":"Indicates whether or not the pull request is a draft.","example":false,"type":"boolean"},"head":{"properties":{"label":{"type":"string"},"ref":{"type":"string"},"repo":{"$ref":"#/components/schemas/repository"},"sha":{"type":"string"},"user":{"$ref":"#/components/schemas/nullable-simple-user"}},"required":["label","ref","repo","sha","user"],"type":"object"},"html_url":{"example":"https://github.com/octocat/Hello-World/pull/1347","format":"uri","type":"string"},"id":{"example":1,"type":"integer"},"issue_url":{"example":"https://api.github.com/repos/octocat/Hello-World/issues/1347","format":"uri","type":"string"},"labels":{"items":{"properties":{"color":{"type":"string"},"default":{"type":"boolean"},"description":{"type":"string"},"id":{"format":"int64","type":"integer"},"name":{"type":"string"},"node_id":{"type":"string"},"url":{"type":"string"}},"required":["id","node_id","url","name","description","color","default"],"type":"object"},"type":"array"},"locked":{"example":true,"type":"boolean"},"merge_commit_sha":{"example":"e5bd3914e2e596debea16f433f57875b5b90bcd6","nullable":true,"type":"string"},"merged_at":{"example":"2011-01-26T19:01:12Z","format":"date-time","nullable":true,"type":"string"},"milestone":{"$ref":"#/components/schemas/nullable-milestone"},"node_id":{"example":"MDExOlB1bGxSZXF1ZXN0MQ==","type":"string"},"number":{"example":1347,"type":"integer"},"patch_url":{"example":"https://github.com/octocat/Hello-World/pull/1347.patch","format":"uri","type":"string"},"requested_reviewers":{"items":{"$ref":"#/components/schemas/simple-user"},"nullable":true,"type":"array"},"requested_teams":{"items":{"$ref":"#/components/schemas/team"},"nullable":true,"type":"array"},"review_comment_url":{"example":"https://api.github.com/repos/octocat/Hello-World/pulls/comments{/number}","type":"string"},"review_comments_url":{"example":"https://api.github.com/repos/octocat/Hello-World/pulls/1347/comments","format":"uri","type":"string"},"state":{"example":"open","type":"string"},"statuses_url":{"example":"https://api.github.com/repos/octocat/Hello-World/statuses/6dcb09b5b57875f334f61aebed695e2e4193db5e","format":"uri","type":"string"},"title":{"example":"new-feature","type":"string"},"updated_at":{"example":"2011-01-26T19:01:12Z","format":"date-time","type":"string"},"url":{"example":"https://api.github.com/repos/octocat/Hello-World/pulls/1347","format":"uri","type":"string"},"user":{"$ref":"#/components/schemas/nullable-simple-user"}},"required":["_links","assignee","labels","base","body","closed_at","comments_url","commits_url","created_at","diff_url","head","html_url","id","node_id","issue_url","merge_commit_sha","merged_at","milestone","number","patch_url","review_comment_url","review_comments_url","statuses_url","state","locked","title","updated_at","url","user","author_association"],"title":"Pull Request Simple","type":"object"}
```
