Skip to content

Commit 8ceb213

Browse files
authored
Merge pull request #1544 from github/openapi-update-1a0d4a090c24a01032928bd3de95e282eaf8640ad17bed058221f5c29ba2fa64
Update OpenAPI 3.0 Descriptions
2 parents 5860f47 + e3b8b41 commit 8ceb213

28 files changed

+1008
-832
lines changed

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

Lines changed: 29 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -5448,7 +5448,7 @@
54485448
},
54495449
{
54505450
"name": "state",
5451-
"description": "Indicates the state of the issues to return. Can be either `open`, `closed`, or `all`.",
5451+
"description": "Indicates the state of the issues to return.",
54525452
"in": "query",
54535453
"required": false,
54545454
"schema": {
@@ -5466,7 +5466,7 @@
54665466
},
54675467
{
54685468
"name": "sort",
5469-
"description": "What to sort results by. Can be either `created`, `updated`, `comments`.",
5469+
"description": "What to sort results by.",
54705470
"in": "query",
54715471
"required": false,
54725472
"schema": {
@@ -5707,7 +5707,7 @@
57075707
"type": "string"
57085708
},
57095709
"mode": {
5710-
"description": "The rendering mode. Can be either `markdown` or `gfm`.",
5710+
"description": "The rendering mode.",
57115711
"enum": [
57125712
"markdown",
57135713
"gfm"
@@ -12426,7 +12426,7 @@
1242612426
},
1242712427
{
1242812428
"name": "state",
12429-
"description": "Indicates the state of the issues to return. Can be either `open`, `closed`, or `all`.",
12429+
"description": "Indicates the state of the issues to return.",
1243012430
"in": "query",
1243112431
"required": false,
1243212432
"schema": {
@@ -12444,7 +12444,7 @@
1244412444
},
1244512445
{
1244612446
"name": "sort",
12447-
"description": "What to sort results by. Can be either `created`, `updated`, `comments`.",
12447+
"description": "What to sort results by.",
1244812448
"in": "query",
1244912449
"required": false,
1245012450
"schema": {
@@ -14062,7 +14062,7 @@
1406214062
},
1406314063
{
1406414064
"name": "state",
14065-
"description": "Indicates the state of the projects to return. Can be either `open`, `closed`, or `all`.",
14065+
"description": "Indicates the state of the projects to return.",
1406614066
"in": "query",
1406714067
"required": false,
1406814068
"schema": {
@@ -32890,7 +32890,7 @@
3289032890
},
3289132891
{
3289232892
"name": "sort",
32893-
"description": "The sort order. Can be either `newest`, `oldest`, or `stargazers`.",
32893+
"description": "The sort order. `stargazers` will sort by star count.",
3289432894
"in": "query",
3289532895
"required": false,
3289632896
"schema": {
@@ -35891,7 +35891,7 @@
3589135891
},
3589235892
{
3589335893
"name": "state",
35894-
"description": "Indicates the state of the issues to return. Can be either `open`, `closed`, or `all`.",
35894+
"description": "Indicates the state of the issues to return.",
3589535895
"in": "query",
3589635896
"required": false,
3589735897
"schema": {
@@ -35936,7 +35936,7 @@
3593635936
},
3593735937
{
3593835938
"name": "sort",
35939-
"description": "What to sort results by. Can be either `created`, `updated`, `comments`.",
35939+
"description": "What to sort results by.",
3594035940
"in": "query",
3594135941
"required": false,
3594235942
"schema": {
@@ -40440,7 +40440,7 @@
4044040440
},
4044140441
{
4044240442
"name": "state",
40443-
"description": "Indicates the state of the projects to return. Can be either `open`, `closed`, or `all`.",
40443+
"description": "Indicates the state of the projects to return.",
4044440444
"in": "query",
4044540445
"required": false,
4044640446
"schema": {
@@ -40651,7 +40651,7 @@
4065140651
},
4065240652
{
4065340653
"name": "sort",
40654-
"description": "What to sort results by. Can be either `created`, `updated`, `popularity` (comment count) or `long-running` (age, filtering by pulls updated in the last month).",
40654+
"description": "What to sort results by. `popularity` will sort by the number of comments. `long-running` will sort by date created and will limit the results to pull requests that have been open for more than a month and have had activity within the past month.",
4065540655
"in": "query",
4065640656
"required": false,
4065740657
"schema": {
@@ -40667,7 +40667,7 @@
4066740667
},
4066840668
{
4066940669
"name": "direction",
40670-
"description": "The direction of the sort. Can be either `asc` or `desc`. Default: `desc` when sort is `created` or sort is not specified, otherwise `asc`.",
40670+
"description": "The direction of the sort. Default: `desc` when sort is `created` or sort is not specified, otherwise `asc`.",
4067140671
"in": "query",
4067240672
"required": false,
4067340673
"schema": {
@@ -40871,7 +40871,7 @@
4087140871
},
4087240872
{
4087340873
"name": "direction",
40874-
"description": "Can be either `asc` or `desc`. Ignored without `sort` parameter.",
40874+
"description": "The direction to sort results. Ignored without `sort` parameter.",
4087540875
"in": "query",
4087640876
"required": false,
4087740877
"schema": {
@@ -41622,7 +41622,7 @@
4162241622
},
4162341623
{
4162441624
"name": "direction",
41625-
"description": "Can be either `asc` or `desc`. Ignored without `sort` parameter.",
41625+
"description": "The direction to sort results. Ignored without `sort` parameter.",
4162641626
"in": "query",
4162741627
"required": false,
4162841628
"schema": {
@@ -54177,7 +54177,7 @@
5417754177
},
5417854178
{
5417954179
"name": "state",
54180-
"description": "Indicates the state of the issues to return. Can be either `open`, `closed`, or `all`.",
54180+
"description": "Indicates the state of the issues to return.",
5418154181
"in": "query",
5418254182
"required": false,
5418354183
"schema": {
@@ -54195,7 +54195,7 @@
5419554195
},
5419654196
{
5419754197
"name": "sort",
54198-
"description": "What to sort results by. Can be either `created`, `updated`, `comments`.",
54198+
"description": "What to sort results by.",
5419954199
"in": "query",
5420054200
"required": false,
5420154201
"schema": {
@@ -54633,7 +54633,7 @@
5463354633
"parameters": [
5463454634
{
5463554635
"name": "state",
54636-
"description": "Indicates the state of the memberships to return. Can be either `active` or `pending`. If not specified, the API returns both active and pending memberships.",
54636+
"description": "Indicates the state of the memberships to return. If not specified, the API returns both active and pending memberships.",
5463754637
"in": "query",
5463854638
"required": false,
5463954639
"schema": {
@@ -58181,7 +58181,7 @@
5818158181
},
5818258182
{
5818358183
"name": "state",
58184-
"description": "Indicates the state of the projects to return. Can be either `open`, `closed`, or `all`.",
58184+
"description": "Indicates the state of the projects to return.",
5818558185
"in": "query",
5818658186
"required": false,
5818758187
"schema": {
@@ -62901,7 +62901,7 @@
6290162901
"nullable": true
6290262902
},
6290362903
"secret-scanning-alert-state": {
62904-
"description": "Sets the state of the secret scanning alert. Can be either `open` or `resolved`. You must provide `resolution` when you set the state to `resolved`.",
62904+
"description": "Sets the state of the secret scanning alert. You must provide `resolution` when you set the state to `resolved`.",
6290562905
"type": "string",
6290662906
"enum": [
6290762907
"open",
@@ -71502,7 +71502,16 @@
7150271502
"description": "The outcome of the job.",
7150371503
"example": "success",
7150471504
"type": "string",
71505-
"nullable": true
71505+
"nullable": true,
71506+
"enum": [
71507+
"success",
71508+
"failure",
71509+
"neutral",
71510+
"cancelled",
71511+
"skipped",
71512+
"timed_out",
71513+
"action_required"
71514+
]
7150671515
},
7150771516
"started_at": {
7150871517
"description": "The time that the job started, in ISO 8601 format.",

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

Lines changed: 33 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -3788,8 +3788,7 @@ paths:
37883788
- all
37893789
default: assigned
37903790
- name: state
3791-
description: Indicates the state of the issues to return. Can be either `open`,
3792-
`closed`, or `all`.
3791+
description: Indicates the state of the issues to return.
37933792
in: query
37943793
required: false
37953794
schema:
@@ -3801,8 +3800,7 @@ paths:
38013800
default: open
38023801
- "$ref": "#/components/parameters/labels"
38033802
- name: sort
3804-
description: What to sort results by. Can be either `created`, `updated`,
3805-
`comments`.
3803+
description: What to sort results by.
38063804
in: query
38073805
required: false
38083806
schema:
@@ -3957,7 +3955,7 @@ paths:
39573955
description: The Markdown text to render in HTML.
39583956
type: string
39593957
mode:
3960-
description: The rendering mode. Can be either `markdown` or `gfm`.
3958+
description: The rendering mode.
39613959
enum:
39623960
- markdown
39633961
- gfm
@@ -8963,8 +8961,7 @@ paths:
89638961
- all
89648962
default: assigned
89658963
- name: state
8966-
description: Indicates the state of the issues to return. Can be either `open`,
8967-
`closed`, or `all`.
8964+
description: Indicates the state of the issues to return.
89688965
in: query
89698966
required: false
89708967
schema:
@@ -8976,8 +8973,7 @@ paths:
89768973
default: open
89778974
- "$ref": "#/components/parameters/labels"
89788975
- name: sort
8979-
description: What to sort results by. Can be either `created`, `updated`,
8980-
`comments`.
8976+
description: What to sort results by.
89818977
in: query
89828978
required: false
89838979
schema:
@@ -10127,8 +10123,7 @@ paths:
1012710123
parameters:
1012810124
- "$ref": "#/components/parameters/org"
1012910125
- name: state
10130-
description: Indicates the state of the projects to return. Can be either
10131-
`open`, `closed`, or `all`.
10126+
description: Indicates the state of the projects to return.
1013210127
in: query
1013310128
required: false
1013410129
schema:
@@ -23894,7 +23889,7 @@ paths:
2389423889
- "$ref": "#/components/parameters/owner"
2389523890
- "$ref": "#/components/parameters/repo"
2389623891
- name: sort
23897-
description: The sort order. Can be either `newest`, `oldest`, or `stargazers`.
23892+
description: The sort order. `stargazers` will sort by star count.
2389823893
in: query
2389923894
required: false
2390023895
schema:
@@ -26137,8 +26132,7 @@ paths:
2613726132
schema:
2613826133
type: string
2613926134
- name: state
26140-
description: Indicates the state of the issues to return. Can be either `open`,
26141-
`closed`, or `all`.
26135+
description: Indicates the state of the issues to return.
2614226136
in: query
2614326137
required: false
2614426138
schema:
@@ -26169,8 +26163,7 @@ paths:
2616926163
type: string
2617026164
- "$ref": "#/components/parameters/labels"
2617126165
- name: sort
26172-
description: What to sort results by. Can be either `created`, `updated`,
26173-
`comments`.
26166+
description: What to sort results by.
2617426167
in: query
2617526168
required: false
2617626169
schema:
@@ -29129,8 +29122,7 @@ paths:
2912929122
- "$ref": "#/components/parameters/owner"
2913029123
- "$ref": "#/components/parameters/repo"
2913129124
- name: state
29132-
description: Indicates the state of the projects to return. Can be either
29133-
`open`, `closed`, or `all`.
29125+
description: Indicates the state of the projects to return.
2913429126
in: query
2913529127
required: false
2913629128
schema:
@@ -29275,9 +29267,10 @@ paths:
2927529267
schema:
2927629268
type: string
2927729269
- name: sort
29278-
description: What to sort results by. Can be either `created`, `updated`,
29279-
`popularity` (comment count) or `long-running` (age, filtering by pulls
29280-
updated in the last month).
29270+
description: What to sort results by. `popularity` will sort by the number
29271+
of comments. `long-running` will sort by date created and will limit the
29272+
results to pull requests that have been open for more than a month and have
29273+
had activity within the past month.
2928129274
in: query
2928229275
required: false
2928329276
schema:
@@ -29289,8 +29282,8 @@ paths:
2928929282
- long-running
2929029283
default: created
2929129284
- name: direction
29292-
description: 'The direction of the sort. Can be either `asc` or `desc`. Default:
29293-
`desc` when sort is `created` or sort is not specified, otherwise `asc`.'
29285+
description: 'The direction of the sort. Default: `desc` when sort is `created`
29286+
or sort is not specified, otherwise `asc`.'
2929429287
in: query
2929529288
required: false
2929629289
schema:
@@ -29441,7 +29434,7 @@ paths:
2944129434
- updated
2944229435
- created_at
2944329436
- name: direction
29444-
description: Can be either `asc` or `desc`. Ignored without `sort` parameter.
29437+
description: The direction to sort results. Ignored without `sort` parameter.
2944529438
in: query
2944629439
required: false
2944729440
schema:
@@ -29951,7 +29944,7 @@ paths:
2995129944
- "$ref": "#/components/parameters/pull-number"
2995229945
- "$ref": "#/components/parameters/sort"
2995329946
- name: direction
29954-
description: Can be either `asc` or `desc`. Ignored without `sort` parameter.
29947+
description: The direction to sort results. Ignored without `sort` parameter.
2995529948
in: query
2995629949
required: false
2995729950
schema:
@@ -39034,8 +39027,7 @@ paths:
3903439027
- all
3903539028
default: assigned
3903639029
- name: state
39037-
description: Indicates the state of the issues to return. Can be either `open`,
39038-
`closed`, or `all`.
39030+
description: Indicates the state of the issues to return.
3903939031
in: query
3904039032
required: false
3904139033
schema:
@@ -39047,8 +39039,7 @@ paths:
3904739039
default: open
3904839040
- "$ref": "#/components/parameters/labels"
3904939041
- name: sort
39050-
description: What to sort results by. Can be either `created`, `updated`,
39051-
`comments`.
39042+
description: What to sort results by.
3905239043
in: query
3905339044
required: false
3905439045
schema:
@@ -39343,9 +39334,8 @@ paths:
3934339334
url: https://docs.github.com/rest/reference/orgs#list-organization-memberships-for-the-authenticated-user
3934439335
parameters:
3934539336
- name: state
39346-
description: Indicates the state of the memberships to return. Can be either
39347-
`active` or `pending`. If not specified, the API returns both active and
39348-
pending memberships.
39337+
description: Indicates the state of the memberships to return. If not specified,
39338+
the API returns both active and pending memberships.
3934939339
in: query
3935039340
required: false
3935139341
schema:
@@ -41868,8 +41858,7 @@ paths:
4186841858
parameters:
4186941859
- "$ref": "#/components/parameters/username"
4187041860
- name: state
41871-
description: Indicates the state of the projects to return. Can be either
41872-
`open`, `closed`, or `all`.
41861+
description: Indicates the state of the projects to return.
4187341862
in: query
4187441863
required: false
4187541864
schema:
@@ -45563,8 +45552,8 @@ components:
4556345552
readOnly: true
4556445553
nullable: true
4556545554
secret-scanning-alert-state:
45566-
description: Sets the state of the secret scanning alert. Can be either `open`
45567-
or `resolved`. You must provide `resolution` when you set the state to `resolved`.
45555+
description: Sets the state of the secret scanning alert. You must provide `resolution`
45556+
when you set the state to `resolved`.
4556845557
type: string
4556945558
enum:
4557045559
- open
@@ -52322,6 +52311,14 @@ components:
5232252311
example: success
5232352312
type: string
5232452313
nullable: true
52314+
enum:
52315+
- success
52316+
- failure
52317+
- neutral
52318+
- cancelled
52319+
- skipped
52320+
- timed_out
52321+
- action_required
5232552322
started_at:
5232652323
description: The time that the job started, in ISO 8601 format.
5232752324
example: '2019-08-08T08:00:00-07:00'

0 commit comments

Comments
 (0)