Skip to content

Commit a983527

Browse files
authored
Merge pull request #712 from github/openapi-update-08649cd8792b9a3d7fd6ab452c396c7a873e3ed2c2d7e633d7a6630ca2de6377
Update OpenAPI Descriptions
2 parents 9dca4cd + 38ed4dd commit a983527

24 files changed

+16647
-8041
lines changed

descriptions/api.github.com/api.github.com.json

Lines changed: 1228 additions & 217 deletions
Large diffs are not rendered by default.

descriptions/api.github.com/api.github.com.yaml

Lines changed: 947 additions & 183 deletions
Large diffs are not rendered by default.

descriptions/api.github.com/dereferenced/api.github.com.deref.json

Lines changed: 3982 additions & 1117 deletions
Large diffs are not rendered by default.

descriptions/api.github.com/dereferenced/api.github.com.deref.yaml

Lines changed: 4325 additions & 3370 deletions
Large diffs are not rendered by default.

descriptions/ghes-3.0/dereferenced/ghes-3.0.deref.json

Lines changed: 123 additions & 20 deletions
Large diffs are not rendered by default.

descriptions/ghes-3.0/dereferenced/ghes-3.0.deref.yaml

Lines changed: 66 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8460,6 +8460,8 @@ paths:
84608460
labels:
84618461
type: array
84628462
items:
8463+
title: Self hosted runner label
8464+
description: A label for a self hosted runner
84638465
type: object
84648466
properties:
84658467
id:
@@ -8475,6 +8477,8 @@ paths:
84758477
enum:
84768478
- read-only
84778479
- custom
8480+
required:
8481+
- name
84788482
required: &89
84798483
- id
84808484
- name
@@ -12548,7 +12552,7 @@ paths:
1254812552
description: The Markdown text to render in HTML.
1254912553
type: string
1255012554
mode:
12551-
description: The rendering mode.
12555+
description: The rendering mode. Can be either `markdown` or `gfm`.
1255212556
enum:
1255312557
- markdown
1255412558
- gfm
@@ -12557,7 +12561,9 @@ paths:
1255712561
type: string
1255812562
context:
1255912563
description: The repository context to use when creating references
12560-
in `gfm` mode.
12564+
in `gfm` mode. For example, setting `context` to `octo-org/octo-repo`
12565+
will change the text `#42` into an HTML link to issue 42 in the
12566+
`octo-org/octo-repo` repository.
1256112567
type: string
1256212568
required:
1256312569
- text
@@ -22904,9 +22910,11 @@ paths:
2290422910
created_at: '2011-01-26T19:01:12Z'
2290522911
updated_at: '2011-01-26T19:14:43Z'
2290622912
permissions:
22907-
admin: false
22908-
push: false
2290922913
pull: true
22914+
triage: false
22915+
push: false
22916+
maintain: false
22917+
admin: false
2291022918
allow_rebase_merge: true
2291122919
temp_clone_token: ABTLWHOULUVAXGTRYU7OC2876QJ2O
2291222920
allow_squash_merge: true
@@ -30225,6 +30233,8 @@ paths:
3022530233
enabled:
3022630234
type: boolean
3022730235
required_status_checks:
30236+
title: Protected Branch Required Status Check
30237+
description: Protected Branch Required Status Check
3022830238
type: object
3022930239
properties:
3023030240
url:
@@ -31111,13 +31121,33 @@ paths:
3111131121
description: Require branches to be up to date before merging.
3111231122
contexts:
3111331123
type: array
31114-
description: The list of status checks to require in order to
31115-
merge into this branch. If any of these checks have recently
31116-
been set by a particular GitHub App, they will be required
31117-
to come from that app in future for the branch to merge. Use
31118-
`checks` instead of `contexts` for more fine-grained control.
31124+
deprecated: true
31125+
description: "**Deprecated**: The list of status checks to require
31126+
in order to merge into this branch. If any of these checks
31127+
have recently been set by a particular GitHub App, they will
31128+
be required to come from that app in future for the branch
31129+
to merge. Use `checks` instead of `contexts` for more fine-grained
31130+
control.\n"
3111931131
items:
3112031132
type: string
31133+
checks:
31134+
type: array
31135+
description: The list of status checks to require in order to
31136+
merge into this branch.
31137+
items:
31138+
type: object
31139+
required:
31140+
- context
31141+
properties:
31142+
context:
31143+
type: string
31144+
description: The name of the required check
31145+
app_id:
31146+
type: integer
31147+
description: The ID of the GitHub App that must provide
31148+
this check. Omit this field to automatically select
31149+
the GitHub App that has recently provided this check,
31150+
or any app if it was not set by a GitHub App.
3112131151
required:
3112231152
- strict
3112331153
- contexts
@@ -31219,6 +31249,12 @@ paths:
3121931249
description: 'Requires all conversations on code to be resolved
3122031250
before a pull request can be merged into a branch that matches
3122131251
this rule. Set to `false` to disable. Default: `false`.'
31252+
contexts:
31253+
type: array
31254+
description: The list of status checks to require in order to merge
31255+
into this branch.
31256+
items:
31257+
type: string
3122231258
required:
3122331259
- required_status_checks
3122431260
- enforce_admins
@@ -32069,7 +32105,7 @@ paths:
3206932105
operationId: repos/update-status-check-protection
3207032106
externalDocs:
3207132107
description: API method documentation
32072-
url: https://docs.github.com/[email protected]/rest/reference/repos#update-status-check-potection
32108+
url: https://docs.github.com/[email protected]/rest/reference/repos#update-status-check-protection
3207332109
parameters:
3207432110
- name: owner
3207532111
in: path
@@ -32097,6 +32133,7 @@ paths:
3209732133
description: Require branches to be up to date before merging.
3209832134
contexts:
3209932135
type: array
32136+
deprecated: true
3210032137
description: The list of status checks to require in order to merge
3210132138
into this branch
3210232139
items:
@@ -34753,6 +34790,10 @@ paths:
3475334790
type: integer
3475434791
check_runs_url:
3475534792
type: string
34793+
rerequestable:
34794+
type: boolean
34795+
runs_rerequestable:
34796+
type: boolean
3475634797
required: &260
3475734798
- id
3475834799
- node_id
@@ -37010,7 +37051,11 @@ paths:
3701037051
description: |-
3701137052
This endpoint triggers [notifications](https://docs.github.com/en/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. See "[Secondary rate limits](https://docs.github.com/[email protected]/rest/overview/resources-in-the-rest-api#secondary-rate-limits)" and "[Dealing with secondary rate limits](https://docs.github.com/[email protected]/rest/guides/best-practices-for-integrators#dealing-with-secondary-rate-limits)" for details.
3701237053

37013-
For more information on permission levels, see "[Repository permission levels for an organization](https://help.github.com/en/github/setting-up-and-managing-organizations-and-teams/repository-permission-levels-for-an-organization#permission-levels-for-repositories-owned-by-an-organization)".
37054+
For more information on permission levels, see "[Repository permission levels for an organization](https://help.github.com/en/github/setting-up-and-managing-organizations-and-teams/repository-permission-levels-for-an-organization#permission-levels-for-repositories-owned-by-an-organization)". There are restrictions on which permissions can be granted to organization members when an organization base role is in place. In this case, the permission being given must be equal to or higher than the org base permission. Otherwise, the request will fail with:
37055+
37056+
```
37057+
Cannot assign {member} permission of {role name}
37058+
```
3701437059

3701537060
Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see "[HTTP verbs](https://docs.github.com/[email protected]/rest/overview/resources-in-the-rest-api#http-verbs)."
3701637061

@@ -42717,8 +42762,8 @@ paths:
4271742762
state:
4271842763
type: string
4271942764
description: The state of the status. Can be one of `error`, `failure`,
42720-
`inactive`, `in_progress`, `queued` `pending`, or `success`. **Note:**
42721-
To use the `inactive` state, you must provide the [`application/vnd.github.ant-man-preview+json`](https://docs.github.com/[email protected]/rest/overview/api-previews#enhanced-deployments)
42765+
`inactive`, `in_progress`, `queued`, `pending`, or `success`.
42766+
**Note:** To use the `inactive` state, you must provide the [`application/vnd.github.ant-man-preview+json`](https://docs.github.com/[email protected]/rest/overview/api-previews#enhanced-deployments)
4272242767
custom media type. When you set a transient deployment to `inactive`,
4272342768
the deployment will be shown as `destroyed` in GitHub.
4272442769
enum:
@@ -51112,7 +51157,8 @@ paths:
5111251157
for the label, without the leading `#`.
5111351158
description:
5111451159
type: string
51115-
description: A short description of the label.
51160+
description: A short description of the label. Must be 100 characters
51161+
or fewer.
5111651162
required:
5111751163
- name
5111851164
example:
@@ -51247,7 +51293,8 @@ paths:
5124751293
for the label, without the leading `#`.
5124851294
description:
5124951295
type: string
51250-
description: A short description of the label.
51296+
description: A short description of the label. Must be 100 characters
51297+
or fewer.
5125151298
example:
5125251299
new_name: 'bug :bug:'
5125351300
description: Small bug fix required
@@ -66804,9 +66851,11 @@ paths:
6680466851
created_at: '2011-01-26T19:01:12Z'
6680566852
updated_at: '2011-01-26T19:14:43Z'
6680666853
permissions:
66807-
admin: false
66808-
push: false
6680966854
pull: true
66855+
triage: false
66856+
push: false
66857+
maintain: false
66858+
admin: false
6681066859
allow_rebase_merge: true
6681166860
temp_clone_token: ABTLWHOULUVAXGTRYU7OC2876QJ2O
6681266861
allow_squash_merge: true

0 commit comments

Comments
 (0)