You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: update docs for the "Update a secret scanning alert" API (PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}) to clarify that a resolution must be provided when setting state to resolved and replace some strings with enums (#292)
Copy file name to clipboardExpand all lines: cache/api.github.com.deref.json
+54-27Lines changed: 54 additions & 27 deletions
Original file line number
Diff line number
Diff line change
@@ -20541,7 +20541,7 @@
20541
20541
"description": "The REST API URL of the code locations for this alert."
20542
20542
},
20543
20543
"state": {
20544
-
"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`.",
20544
+
"description": "Sets the state of the secret scanning alert. You must provide `resolution` when you set the state to `resolved`.",
20545
20545
"type": "string",
20546
20546
"enum": [
20547
20547
"open",
@@ -37094,7 +37094,7 @@
37094
37094
},
37095
37095
{
37096
37096
"name": "state",
37097
-
"description": "Indicates the state of the issues to return. Can be either `open`, `closed`, or `all`.",
37097
+
"description": "Indicates the state of the issues to return.",
37098
37098
"in": "query",
37099
37099
"required": false,
37100
37100
"schema": {
@@ -37118,7 +37118,7 @@
37118
37118
},
37119
37119
{
37120
37120
"name": "sort",
37121
-
"description": "What to sort results by. Can be either `created`, `updated`, `comments`.",
37121
+
"description": "What to sort results by.",
37122
37122
"in": "query",
37123
37123
"required": false,
37124
37124
"schema": {
@@ -40423,7 +40423,7 @@
40423
40423
"type": "string"
40424
40424
},
40425
40425
"mode": {
40426
-
"description": "The rendering mode. Can be either `markdown` or `gfm`.",
40426
+
"description": "The rendering mode.",
40427
40427
"enum": [
40428
40428
"markdown",
40429
40429
"gfm"
@@ -82808,7 +82808,7 @@
82808
82808
},
82809
82809
{
82810
82810
"name": "state",
82811
-
"description": "Indicates the state of the issues to return. Can be either `open`, `closed`, or `all`.",
82811
+
"description": "Indicates the state of the issues to return.",
82812
82812
"in": "query",
82813
82813
"required": false,
82814
82814
"schema": {
@@ -82832,7 +82832,7 @@
82832
82832
},
82833
82833
{
82834
82834
"name": "sort",
82835
-
"description": "What to sort results by. Can be either `created`, `updated`, `comments`.",
82835
+
"description": "What to sort results by.",
82836
82836
"in": "query",
82837
82837
"required": false,
82838
82838
"schema": {
@@ -102848,7 +102848,7 @@
102848
102848
},
102849
102849
{
102850
102850
"name": "state",
102851
-
"description": "Indicates the state of the projects to return. Can be either `open`, `closed`, or `all`.",
102851
+
"description": "Indicates the state of the projects to return.",
102852
102852
"in": "query",
102853
102853
"required": false,
102854
102854
"schema": {
@@ -107797,7 +107797,7 @@
107797
107797
"description": "The REST API URL of the code locations for this alert."
107798
107798
},
107799
107799
"state": {
107800
-
"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`.",
107800
+
"description": "Sets the state of the secret scanning alert. You must provide `resolution` when you set the state to `resolved`.",
107801
107801
"type": "string",
107802
107802
"enum": [
107803
107803
"open",
@@ -141580,7 +141580,16 @@
141580
141580
"description": "The outcome of the job.",
141581
141581
"example": "success",
141582
141582
"type": "string",
141583
-
"nullable": true
141583
+
"nullable": true,
141584
+
"enum": [
141585
+
"success",
141586
+
"failure",
141587
+
"neutral",
141588
+
"cancelled",
141589
+
"skipped",
141590
+
"timed_out",
141591
+
"action_required"
141592
+
]
141584
141593
},
141585
141594
"started_at": {
141586
141595
"description": "The time that the job started, in ISO 8601 format.",
@@ -161315,7 +161324,16 @@
161315
161324
"description": "The outcome of the job.",
161316
161325
"example": "success",
161317
161326
"type": "string",
161318
-
"nullable": true
161327
+
"nullable": true,
161328
+
"enum": [
161329
+
"success",
161330
+
"failure",
161331
+
"neutral",
161332
+
"cancelled",
161333
+
"skipped",
161334
+
"timed_out",
161335
+
"action_required"
161336
+
]
161319
161337
},
161320
161338
"started_at": {
161321
161339
"description": "The time that the job started, in ISO 8601 format.",
@@ -161928,7 +161946,16 @@
161928
161946
"description": "The outcome of the job.",
161929
161947
"example": "success",
161930
161948
"type": "string",
161931
-
"nullable": true
161949
+
"nullable": true,
161950
+
"enum": [
161951
+
"success",
161952
+
"failure",
161953
+
"neutral",
161954
+
"cancelled",
161955
+
"skipped",
161956
+
"timed_out",
161957
+
"action_required"
161958
+
]
161932
161959
},
161933
161960
"started_at": {
161934
161961
"description": "The time that the job started, in ISO 8601 format.",
@@ -252395,7 +252422,7 @@
252395
252422
},
252396
252423
{
252397
252424
"name": "sort",
252398
-
"description": "The sort order. Can be either `newest`, `oldest`, or `stargazers`.",
252425
+
"description": "The sort order. `stargazers` will sort by star count.",
252399
252426
"in": "query",
252400
252427
"required": false,
252401
252428
"schema": {
@@ -273229,7 +273256,7 @@
273229
273256
},
273230
273257
{
273231
273258
"name": "state",
273232
-
"description": "Indicates the state of the issues to return. Can be either `open`, `closed`, or `all`.",
273259
+
"description": "Indicates the state of the issues to return.",
273233
273260
"in": "query",
273234
273261
"required": false,
273235
273262
"schema": {
@@ -273280,7 +273307,7 @@
273280
273307
},
273281
273308
{
273282
273309
"name": "sort",
273283
-
"description": "What to sort results by. Can be either `created`, `updated`, `comments`.",
273310
+
"description": "What to sort results by.",
273284
273311
"in": "query",
273285
273312
"required": false,
273286
273313
"schema": {
@@ -333999,7 +334026,7 @@
333999
334026
},
334000
334027
{
334001
334028
"name": "state",
334002
-
"description": "Indicates the state of the projects to return. Can be either `open`, `closed`, or `all`.",
334029
+
"description": "Indicates the state of the projects to return.",
334003
334030
"in": "query",
334004
334031
"required": false,
334005
334032
"schema": {
@@ -334977,7 +335004,7 @@
334977
335004
},
334978
335005
{
334979
335006
"name": "sort",
334980
-
"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).",
335007
+
"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.",
334981
335008
"in": "query",
334982
335009
"required": false,
334983
335010
"schema": {
@@ -334993,7 +335020,7 @@
334993
335020
},
334994
335021
{
334995
335022
"name": "direction",
334996
-
"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`.",
335023
+
"description": "The direction of the sort. Default: `desc` when sort is `created` or sort is not specified, otherwise `asc`.",
334997
335024
"in": "query",
334998
335025
"required": false,
334999
335026
"schema": {
@@ -343141,7 +343168,7 @@
343141
343168
},
343142
343169
{
343143
343170
"name": "direction",
343144
-
"description": "Can be either `asc` or `desc`. Ignored without `sort` parameter.",
343171
+
"description": "The direction to sort results. Ignored without `sort` parameter.",
343145
343172
"in": "query",
343146
343173
"required": false,
343147
343174
"schema": {
@@ -357665,7 +357692,7 @@
357665
357692
},
357666
357693
{
357667
357694
"name": "direction",
357668
-
"description": "Can be either `asc` or `desc`. Ignored without `sort` parameter.",
357695
+
"description": "The direction to sort results. Ignored without `sort` parameter.",
357669
357696
"in": "query",
357670
357697
"required": false,
357671
357698
"schema": {
@@ -381395,7 +381422,7 @@
381395
381422
"description": "The REST API URL of the code locations for this alert."
381396
381423
},
381397
381424
"state": {
381398
-
"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`.",
381425
+
"description": "Sets the state of the secret scanning alert. You must provide `resolution` when you set the state to `resolved`.",
381399
381426
"type": "string",
381400
381427
"enum": [
381401
381428
"open",
@@ -381886,7 +381913,7 @@
381886
381913
"description": "The REST API URL of the code locations for this alert."
381887
381914
},
381888
381915
"state": {
381889
-
"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`.",
381916
+
"description": "Sets the state of the secret scanning alert. You must provide `resolution` when you set the state to `resolved`.",
381890
381917
"type": "string",
381891
381918
"enum": [
381892
381919
"open",
@@ -382285,7 +382312,7 @@
382285
382312
"type": "object",
382286
382313
"properties": {
382287
382314
"state": {
382288
-
"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`.",
382315
+
"description": "Sets the state of the secret scanning alert. You must provide `resolution` when you set the state to `resolved`.",
382289
382316
"type": "string",
382290
382317
"enum": [
382291
382318
"open",
@@ -382363,7 +382390,7 @@
382363
382390
"description": "The REST API URL of the code locations for this alert."
382364
382391
},
382365
382392
"state": {
382366
-
"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`.",
382393
+
"description": "Sets the state of the secret scanning alert. You must provide `resolution` when you set the state to `resolved`.",
382367
382394
"type": "string",
382368
382395
"enum": [
382369
382396
"open",
@@ -451534,7 +451561,7 @@
451534
451561
},
451535
451562
{
451536
451563
"name": "state",
451537
-
"description": "Indicates the state of the issues to return. Can be either `open`, `closed`, or `all`.",
451564
+
"description": "Indicates the state of the issues to return.",
451538
451565
"in": "query",
451539
451566
"required": false,
451540
451567
"schema": {
@@ -451558,7 +451585,7 @@
451558
451585
},
451559
451586
{
451560
451587
"name": "sort",
451561
-
"description": "What to sort results by. Can be either `created`, `updated`, `comments`.",
451588
+
"description": "What to sort results by.",
451562
451589
"in": "query",
451563
451590
"required": false,
451564
451591
"schema": {
@@ -455738,7 +455765,7 @@
455738
455765
"parameters": [
455739
455766
{
455740
455767
"name": "state",
455741
-
"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.",
455768
+
"description": "Indicates the state of the memberships to return. If not specified, the API returns both active and pending memberships.",
455742
455769
"in": "query",
455743
455770
"required": false,
455744
455771
"schema": {
@@ -501389,7 +501416,7 @@
501389
501416
},
501390
501417
{
501391
501418
"name": "state",
501392
-
"description": "Indicates the state of the projects to return. Can be either `open`, `closed`, or `all`.",
501419
+
"description": "Indicates the state of the projects to return.",
0 commit comments