Skip to content

Commit 36148a0

Browse files
Update OpenAPI 3.1 Descriptions
1 parent 5860f47 commit 36148a0

28 files changed

+1022
-807
lines changed

descriptions-next/api.github.com/api.github.com.json

Lines changed: 29 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5488,7 +5488,7 @@
54885488
},
54895489
{
54905490
"name": "state",
5491-
"description": "Indicates the state of the issues to return. Can be either `open`, `closed`, or `all`.",
5491+
"description": "Indicates the state of the issues to return.",
54925492
"in": "query",
54935493
"required": false,
54945494
"schema": {
@@ -5506,7 +5506,7 @@
55065506
},
55075507
{
55085508
"name": "sort",
5509-
"description": "What to sort results by. Can be either `created`, `updated`, `comments`.",
5509+
"description": "What to sort results by.",
55105510
"in": "query",
55115511
"required": false,
55125512
"schema": {
@@ -5747,7 +5747,7 @@
57475747
"type": "string"
57485748
},
57495749
"mode": {
5750-
"description": "The rendering mode. Can be either `markdown` or `gfm`.",
5750+
"description": "The rendering mode.",
57515751
"enum": [
57525752
"markdown",
57535753
"gfm"
@@ -12482,7 +12482,7 @@
1248212482
},
1248312483
{
1248412484
"name": "state",
12485-
"description": "Indicates the state of the issues to return. Can be either `open`, `closed`, or `all`.",
12485+
"description": "Indicates the state of the issues to return.",
1248612486
"in": "query",
1248712487
"required": false,
1248812488
"schema": {
@@ -12500,7 +12500,7 @@
1250012500
},
1250112501
{
1250212502
"name": "sort",
12503-
"description": "What to sort results by. Can be either `created`, `updated`, `comments`.",
12503+
"description": "What to sort results by.",
1250412504
"in": "query",
1250512505
"required": false,
1250612506
"schema": {
@@ -14132,7 +14132,7 @@
1413214132
},
1413314133
{
1413414134
"name": "state",
14135-
"description": "Indicates the state of the projects to return. Can be either `open`, `closed`, or `all`.",
14135+
"description": "Indicates the state of the projects to return.",
1413614136
"in": "query",
1413714137
"required": false,
1413814138
"schema": {
@@ -33058,7 +33058,7 @@
3305833058
},
3305933059
{
3306033060
"name": "sort",
33061-
"description": "The sort order. Can be either `newest`, `oldest`, or `stargazers`.",
33061+
"description": "The sort order. `stargazers` will sort by star count.",
3306233062
"in": "query",
3306333063
"required": false,
3306433064
"schema": {
@@ -36081,7 +36081,7 @@
3608136081
},
3608236082
{
3608336083
"name": "state",
36084-
"description": "Indicates the state of the issues to return. Can be either `open`, `closed`, or `all`.",
36084+
"description": "Indicates the state of the issues to return.",
3608536085
"in": "query",
3608636086
"required": false,
3608736087
"schema": {
@@ -36126,7 +36126,7 @@
3612636126
},
3612736127
{
3612836128
"name": "sort",
36129-
"description": "What to sort results by. Can be either `created`, `updated`, `comments`.",
36129+
"description": "What to sort results by.",
3613036130
"in": "query",
3613136131
"required": false,
3613236132
"schema": {
@@ -40667,7 +40667,7 @@
4066740667
},
4066840668
{
4066940669
"name": "state",
40670-
"description": "Indicates the state of the projects to return. Can be either `open`, `closed`, or `all`.",
40670+
"description": "Indicates the state of the projects to return.",
4067140671
"in": "query",
4067240672
"required": false,
4067340673
"schema": {
@@ -40878,7 +40878,7 @@
4087840878
},
4087940879
{
4088040880
"name": "sort",
40881-
"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).",
40881+
"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.",
4088240882
"in": "query",
4088340883
"required": false,
4088440884
"schema": {
@@ -40894,7 +40894,7 @@
4089440894
},
4089540895
{
4089640896
"name": "direction",
40897-
"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`.",
40897+
"description": "The direction of the sort. Default: `desc` when sort is `created` or sort is not specified, otherwise `asc`.",
4089840898
"in": "query",
4089940899
"required": false,
4090040900
"schema": {
@@ -41100,7 +41100,7 @@
4110041100
},
4110141101
{
4110241102
"name": "direction",
41103-
"description": "Can be either `asc` or `desc`. Ignored without `sort` parameter.",
41103+
"description": "The direction to sort results. Ignored without `sort` parameter.",
4110441104
"in": "query",
4110541105
"required": false,
4110641106
"schema": {
@@ -41853,7 +41853,7 @@
4185341853
},
4185441854
{
4185541855
"name": "direction",
41856-
"description": "Can be either `asc` or `desc`. Ignored without `sort` parameter.",
41856+
"description": "The direction to sort results. Ignored without `sort` parameter.",
4185741857
"in": "query",
4185841858
"required": false,
4185941859
"schema": {
@@ -54480,7 +54480,7 @@
5448054480
},
5448154481
{
5448254482
"name": "state",
54483-
"description": "Indicates the state of the issues to return. Can be either `open`, `closed`, or `all`.",
54483+
"description": "Indicates the state of the issues to return.",
5448454484
"in": "query",
5448554485
"required": false,
5448654486
"schema": {
@@ -54498,7 +54498,7 @@
5449854498
},
5449954499
{
5450054500
"name": "sort",
54501-
"description": "What to sort results by. Can be either `created`, `updated`, `comments`.",
54501+
"description": "What to sort results by.",
5450254502
"in": "query",
5450354503
"required": false,
5450454504
"schema": {
@@ -54938,7 +54938,7 @@
5493854938
"parameters": [
5493954939
{
5494054940
"name": "state",
54941-
"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.",
54941+
"description": "Indicates the state of the memberships to return. If not specified, the API returns both active and pending memberships.",
5494254942
"in": "query",
5494354943
"required": false,
5494454944
"schema": {
@@ -58538,7 +58538,7 @@
5853858538
},
5853958539
{
5854058540
"name": "state",
58541-
"description": "Indicates the state of the projects to return. Can be either `open`, `closed`, or `all`.",
58541+
"description": "Indicates the state of the projects to return.",
5854258542
"in": "query",
5854358543
"required": false,
5854458544
"schema": {
@@ -63774,7 +63774,7 @@
6377463774
}
6377563775
},
6377663776
"secret-scanning-alert-state": {
63777-
"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`.",
63777+
"description": "Sets the state of the secret scanning alert. You must provide `resolution` when you set the state to `resolved`.",
6377863778
"type": "string",
6377963779
"enum": [
6378063780
"open",
@@ -72532,6 +72532,16 @@
7253272532
"string",
7253372533
"null"
7253472534
],
72535+
"enum": [
72536+
"success",
72537+
"failure",
72538+
"neutral",
72539+
"cancelled",
72540+
"skipped",
72541+
"timed_out",
72542+
"action_required",
72543+
null
72544+
],
7253572545
"examples": [
7253672546
"success"
7253772547
]

descriptions-next/api.github.com/api.github.com.yaml

Lines changed: 34 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -3806,8 +3806,7 @@ paths:
38063806
- all
38073807
default: assigned
38083808
- name: state
3809-
description: Indicates the state of the issues to return. Can be either `open`,
3810-
`closed`, or `all`.
3809+
description: Indicates the state of the issues to return.
38113810
in: query
38123811
required: false
38133812
schema:
@@ -3819,8 +3818,7 @@ paths:
38193818
default: open
38203819
- "$ref": "#/components/parameters/labels"
38213820
- name: sort
3822-
description: What to sort results by. Can be either `created`, `updated`,
3823-
`comments`.
3821+
description: What to sort results by.
38243822
in: query
38253823
required: false
38263824
schema:
@@ -3975,7 +3973,7 @@ paths:
39753973
description: The Markdown text to render in HTML.
39763974
type: string
39773975
mode:
3978-
description: The rendering mode. Can be either `markdown` or `gfm`.
3976+
description: The rendering mode.
39793977
enum:
39803978
- markdown
39813979
- gfm
@@ -8989,8 +8987,7 @@ paths:
89898987
- all
89908988
default: assigned
89918989
- name: state
8992-
description: Indicates the state of the issues to return. Can be either `open`,
8993-
`closed`, or `all`.
8990+
description: Indicates the state of the issues to return.
89948991
in: query
89958992
required: false
89968993
schema:
@@ -9002,8 +8999,7 @@ paths:
90028999
default: open
90039000
- "$ref": "#/components/parameters/labels"
90049001
- name: sort
9005-
description: What to sort results by. Can be either `created`, `updated`,
9006-
`comments`.
9002+
description: What to sort results by.
90079003
in: query
90089004
required: false
90099005
schema:
@@ -10160,8 +10156,7 @@ paths:
1016010156
parameters:
1016110157
- "$ref": "#/components/parameters/org"
1016210158
- name: state
10163-
description: Indicates the state of the projects to return. Can be either
10164-
`open`, `closed`, or `all`.
10159+
description: Indicates the state of the projects to return.
1016510160
in: query
1016610161
required: false
1016710162
schema:
@@ -23975,7 +23970,7 @@ paths:
2397523970
- "$ref": "#/components/parameters/owner"
2397623971
- "$ref": "#/components/parameters/repo"
2397723972
- name: sort
23978-
description: The sort order. Can be either `newest`, `oldest`, or `stargazers`.
23973+
description: The sort order. `stargazers` will sort by star count.
2397923974
in: query
2398023975
required: false
2398123976
schema:
@@ -26229,8 +26224,7 @@ paths:
2622926224
schema:
2623026225
type: string
2623126226
- name: state
26232-
description: Indicates the state of the issues to return. Can be either `open`,
26233-
`closed`, or `all`.
26227+
description: Indicates the state of the issues to return.
2623426228
in: query
2623526229
required: false
2623626230
schema:
@@ -26261,8 +26255,7 @@ paths:
2626126255
type: string
2626226256
- "$ref": "#/components/parameters/labels"
2626326257
- name: sort
26264-
description: What to sort results by. Can be either `created`, `updated`,
26265-
`comments`.
26258+
description: What to sort results by.
2626626259
in: query
2626726260
required: false
2626826261
schema:
@@ -29243,8 +29236,7 @@ paths:
2924329236
- "$ref": "#/components/parameters/owner"
2924429237
- "$ref": "#/components/parameters/repo"
2924529238
- name: state
29246-
description: Indicates the state of the projects to return. Can be either
29247-
`open`, `closed`, or `all`.
29239+
description: Indicates the state of the projects to return.
2924829240
in: query
2924929241
required: false
2925029242
schema:
@@ -29389,9 +29381,10 @@ paths:
2938929381
schema:
2939029382
type: string
2939129383
- name: sort
29392-
description: What to sort results by. Can be either `created`, `updated`,
29393-
`popularity` (comment count) or `long-running` (age, filtering by pulls
29394-
updated in the last month).
29384+
description: What to sort results by. `popularity` will sort by the number
29385+
of comments. `long-running` will sort by date created and will limit the
29386+
results to pull requests that have been open for more than a month and have
29387+
had activity within the past month.
2939529388
in: query
2939629389
required: false
2939729390
schema:
@@ -29403,8 +29396,8 @@ paths:
2940329396
- long-running
2940429397
default: created
2940529398
- name: direction
29406-
description: 'The direction of the sort. Can be either `asc` or `desc`. Default:
29407-
`desc` when sort is `created` or sort is not specified, otherwise `asc`.'
29399+
description: 'The direction of the sort. Default: `desc` when sort is `created`
29400+
or sort is not specified, otherwise `asc`.'
2940829401
in: query
2940929402
required: false
2941029403
schema:
@@ -29556,7 +29549,7 @@ paths:
2955629549
- updated
2955729550
- created_at
2955829551
- name: direction
29559-
description: Can be either `asc` or `desc`. Ignored without `sort` parameter.
29552+
description: The direction to sort results. Ignored without `sort` parameter.
2956029553
in: query
2956129554
required: false
2956229555
schema:
@@ -30067,7 +30060,7 @@ paths:
3006730060
- "$ref": "#/components/parameters/pull-number"
3006830061
- "$ref": "#/components/parameters/sort"
3006930062
- name: direction
30070-
description: Can be either `asc` or `desc`. Ignored without `sort` parameter.
30063+
description: The direction to sort results. Ignored without `sort` parameter.
3007130064
in: query
3007230065
required: false
3007330066
schema:
@@ -39186,8 +39179,7 @@ paths:
3918639179
- all
3918739180
default: assigned
3918839181
- name: state
39189-
description: Indicates the state of the issues to return. Can be either `open`,
39190-
`closed`, or `all`.
39182+
description: Indicates the state of the issues to return.
3919139183
in: query
3919239184
required: false
3919339185
schema:
@@ -39199,8 +39191,7 @@ paths:
3919939191
default: open
3920039192
- "$ref": "#/components/parameters/labels"
3920139193
- name: sort
39202-
description: What to sort results by. Can be either `created`, `updated`,
39203-
`comments`.
39194+
description: What to sort results by.
3920439195
in: query
3920539196
required: false
3920639197
schema:
@@ -39496,9 +39487,8 @@ paths:
3949639487
url: https://docs.github.com/rest/reference/orgs#list-organization-memberships-for-the-authenticated-user
3949739488
parameters:
3949839489
- name: state
39499-
description: Indicates the state of the memberships to return. Can be either
39500-
`active` or `pending`. If not specified, the API returns both active and
39501-
pending memberships.
39490+
description: Indicates the state of the memberships to return. If not specified,
39491+
the API returns both active and pending memberships.
3950239492
in: query
3950339493
required: false
3950439494
schema:
@@ -42046,8 +42036,7 @@ paths:
4204642036
parameters:
4204742037
- "$ref": "#/components/parameters/username"
4204842038
- name: state
42049-
description: Indicates the state of the projects to return. Can be either
42050-
`open`, `closed`, or `all`.
42039+
description: Indicates the state of the projects to return.
4205142040
in: query
4205242041
required: false
4205342042
schema:
@@ -45950,8 +45939,8 @@ components:
4595045939
error:
4595145940
type: string
4595245941
secret-scanning-alert-state:
45953-
description: Sets the state of the secret scanning alert. Can be either `open`
45954-
or `resolved`. You must provide `resolution` when you set the state to `resolved`.
45942+
description: Sets the state of the secret scanning alert. You must provide `resolution`
45943+
when you set the state to `resolved`.
4595545944
type: string
4595645945
enum:
4595745946
- open
@@ -52272,6 +52261,15 @@ components:
5227252261
type:
5227352262
- string
5227452263
- 'null'
52264+
enum:
52265+
- success
52266+
- failure
52267+
- neutral
52268+
- cancelled
52269+
- skipped
52270+
- timed_out
52271+
- action_required
52272+
-
5227552273
examples:
5227652274
- success
5227752275
started_at:

0 commit comments

Comments
 (0)