@octokit/openapi 6.1.4 → 6.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/generated/api.github.com.deref.json +12366 -10615
- package/generated/api.github.com.json +3916 -3453
- package/generated/ghes-3.2-diff-to-api.github.com.deref.json +1 -1
- package/generated/ghes-3.2-diff-to-api.github.com.json +1 -1
- package/generated/ghes-3.2-diff-to-ghes-3.3.deref.json +1 -1
- package/generated/ghes-3.2-diff-to-ghes-3.3.json +1 -1
- package/generated/ghes-3.2.deref.json +187 -7
- package/generated/ghes-3.2.json +190 -29
- package/generated/ghes-3.3-anicca-diff-to-ghes-3.4.deref.json +23 -0
- package/generated/ghes-3.3-diff-to-ghes-3.4.deref.json +96 -1
- package/generated/ghes-3.3-diff-to-ghes-3.4.json +92 -1
- package/generated/ghes-3.3.deref.json +371 -1395
- package/generated/ghes-3.3.json +491 -315
- package/generated/ghes-3.4-anicca-diff-to-ghes-3.5.deref.json +0 -14
- package/generated/ghes-3.4-diff-to-ghes-3.5.deref.json +7801 -10209
- package/generated/ghes-3.4-diff-to-ghes-3.5.json +341 -326
- package/generated/ghes-3.4.deref.json +1434 -3653
- package/generated/ghes-3.4.json +1184 -1001
- package/generated/ghes-3.5-anicca-diff-to-api.github.com.deref.json +69 -73
- package/generated/ghes-3.5-diff-to-api.github.com.deref.json +28230 -31386
- package/generated/ghes-3.5-diff-to-api.github.com.json +813 -744
- package/generated/ghes-3.5.deref.json +1692 -4983
- package/generated/ghes-3.5.json +2093 -2049
- package/generated/github.ae-anicca-diff-to-api.github.com.deref.json +92 -0
- package/generated/github.ae-diff-to-api.github.com.deref.json +488 -1
- package/generated/github.ae-diff-to-api.github.com.json +362 -12
- package/generated/github.ae.deref.json +253 -104
- package/generated/github.ae.json +263 -81
- package/package.json +1 -1
package/generated/ghes-3.2.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"openapi": "3.0.3",
|
|
3
3
|
"info": {
|
|
4
|
-
"version": "6.
|
|
4
|
+
"version": "6.3.0",
|
|
5
5
|
"title": "GitHub's official OpenAPI spec + Octokit extension",
|
|
6
6
|
"description": "OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs",
|
|
7
7
|
"license": { "name": "MIT", "url": "https://spdx.org/licenses/MIT" },
|
|
@@ -8629,7 +8629,7 @@
|
|
|
8629
8629
|
"selected_repository_ids": {
|
|
8630
8630
|
"type": "array",
|
|
8631
8631
|
"description": "An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/enterprise-server@3.2/rest/reference/actions#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/enterprise-server@3.2/rest/reference/actions#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/enterprise-server@3.2/rest/reference/actions#remove-selected-repository-from-an-organization-secret) endpoints.",
|
|
8632
|
-
"items": { "type": "
|
|
8632
|
+
"items": { "type": "integer" }
|
|
8633
8633
|
}
|
|
8634
8634
|
},
|
|
8635
8635
|
"required": ["visibility"]
|
|
@@ -8640,7 +8640,7 @@
|
|
|
8640
8640
|
"encrypted_value": "c2VjcmV0",
|
|
8641
8641
|
"key_id": "012345678912345678",
|
|
8642
8642
|
"visibility": "selected",
|
|
8643
|
-
"selected_repository_ids": [
|
|
8643
|
+
"selected_repository_ids": [1296269, 1296280]
|
|
8644
8644
|
}
|
|
8645
8645
|
}
|
|
8646
8646
|
}
|
|
@@ -8652,7 +8652,8 @@
|
|
|
8652
8652
|
"description": "Response when creating a secret",
|
|
8653
8653
|
"content": {
|
|
8654
8654
|
"application/json": {
|
|
8655
|
-
"schema": { "$ref": "#/components/schemas/empty-object" }
|
|
8655
|
+
"schema": { "$ref": "#/components/schemas/empty-object" },
|
|
8656
|
+
"examples": { "default": { "value": null } }
|
|
8656
8657
|
}
|
|
8657
8658
|
}
|
|
8658
8659
|
},
|
|
@@ -8881,6 +8882,11 @@
|
|
|
8881
8882
|
"schema": {
|
|
8882
8883
|
"type": "array",
|
|
8883
8884
|
"items": { "$ref": "#/components/schemas/event" }
|
|
8885
|
+
},
|
|
8886
|
+
"examples": {
|
|
8887
|
+
"200-response": {
|
|
8888
|
+
"$ref": "#/components/examples/public-org-events-items"
|
|
8889
|
+
}
|
|
8884
8890
|
}
|
|
8885
8891
|
}
|
|
8886
8892
|
}
|
|
@@ -14275,7 +14281,8 @@
|
|
|
14275
14281
|
"headers": {
|
|
14276
14282
|
"Location": { "$ref": "#/components/headers/location" }
|
|
14277
14283
|
}
|
|
14278
|
-
}
|
|
14284
|
+
},
|
|
14285
|
+
"410": { "$ref": "#/components/responses/gone" }
|
|
14279
14286
|
},
|
|
14280
14287
|
"x-github": {
|
|
14281
14288
|
"githubCloudOnly": false,
|
|
@@ -21812,7 +21819,7 @@
|
|
|
21812
21819
|
}
|
|
21813
21820
|
},
|
|
21814
21821
|
"deployment_branch_policy": {
|
|
21815
|
-
"$ref": "#/components/schemas/
|
|
21822
|
+
"$ref": "#/components/schemas/deployment-branch-policy"
|
|
21816
21823
|
}
|
|
21817
21824
|
},
|
|
21818
21825
|
"additionalProperties": false
|
|
@@ -21897,6 +21904,11 @@
|
|
|
21897
21904
|
"schema": {
|
|
21898
21905
|
"type": "array",
|
|
21899
21906
|
"items": { "$ref": "#/components/schemas/event" }
|
|
21907
|
+
},
|
|
21908
|
+
"examples": {
|
|
21909
|
+
"200-response": {
|
|
21910
|
+
"$ref": "#/components/examples/repo-events-items"
|
|
21911
|
+
}
|
|
21900
21912
|
}
|
|
21901
21913
|
}
|
|
21902
21914
|
}
|
|
@@ -24598,7 +24610,7 @@
|
|
|
24598
24610
|
"operationId": "issues/remove-assignees",
|
|
24599
24611
|
"externalDocs": {
|
|
24600
24612
|
"description": "API method documentation",
|
|
24601
|
-
"url": "https://docs.github.com/
|
|
24613
|
+
"url": "https://docs.github.com/rest/reference/issues#remove-assignees-from-an-issue"
|
|
24602
24614
|
},
|
|
24603
24615
|
"parameters": [
|
|
24604
24616
|
{ "$ref": "#/components/parameters/owner" },
|
|
@@ -24606,6 +24618,7 @@
|
|
|
24606
24618
|
{ "$ref": "#/components/parameters/issue-number" }
|
|
24607
24619
|
],
|
|
24608
24620
|
"requestBody": {
|
|
24621
|
+
"required": true,
|
|
24609
24622
|
"content": {
|
|
24610
24623
|
"application/json": {
|
|
24611
24624
|
"schema": {
|
|
@@ -24616,7 +24629,8 @@
|
|
|
24616
24629
|
"description": "Usernames of assignees to remove from an issue. _NOTE: Only users with push access can remove assignees from an issue. Assignees are silently ignored otherwise._",
|
|
24617
24630
|
"items": { "type": "string" }
|
|
24618
24631
|
}
|
|
24619
|
-
}
|
|
24632
|
+
},
|
|
24633
|
+
"required": ["assignees"]
|
|
24620
24634
|
},
|
|
24621
24635
|
"examples": {
|
|
24622
24636
|
"default": { "value": { "assignees": ["hubot", "other_user"] } }
|
|
@@ -31416,7 +31430,8 @@
|
|
|
31416
31430
|
"description": "Response when creating a secret",
|
|
31417
31431
|
"content": {
|
|
31418
31432
|
"application/json": {
|
|
31419
|
-
"schema": { "$ref": "#/components/schemas/empty-object" }
|
|
31433
|
+
"schema": { "$ref": "#/components/schemas/empty-object" },
|
|
31434
|
+
"examples": { "default": { "value": null } }
|
|
31420
31435
|
}
|
|
31421
31436
|
}
|
|
31422
31437
|
},
|
|
@@ -34512,6 +34527,18 @@
|
|
|
34512
34527
|
}
|
|
34513
34528
|
}
|
|
34514
34529
|
]
|
|
34530
|
+
},
|
|
34531
|
+
"examples": {
|
|
34532
|
+
"default": {
|
|
34533
|
+
"summary": "Example adding multiple email addresses",
|
|
34534
|
+
"value": {
|
|
34535
|
+
"emails": [
|
|
34536
|
+
"octocat@github.com",
|
|
34537
|
+
"mona@github.com",
|
|
34538
|
+
"octocat@octocat.org"
|
|
34539
|
+
]
|
|
34540
|
+
}
|
|
34541
|
+
}
|
|
34515
34542
|
}
|
|
34516
34543
|
}
|
|
34517
34544
|
}
|
|
@@ -34588,6 +34615,14 @@
|
|
|
34588
34615
|
"required": ["emails"]
|
|
34589
34616
|
}
|
|
34590
34617
|
]
|
|
34618
|
+
},
|
|
34619
|
+
"examples": {
|
|
34620
|
+
"default": {
|
|
34621
|
+
"summary": "Example deleting multiple email accounts",
|
|
34622
|
+
"value": {
|
|
34623
|
+
"emails": ["octocat@github.com", "mona@github.com"]
|
|
34624
|
+
}
|
|
34625
|
+
}
|
|
34591
34626
|
}
|
|
34592
34627
|
}
|
|
34593
34628
|
}
|
|
@@ -40680,7 +40715,7 @@
|
|
|
40680
40715
|
],
|
|
40681
40716
|
"nullable": true
|
|
40682
40717
|
},
|
|
40683
|
-
"
|
|
40718
|
+
"author-association": {
|
|
40684
40719
|
"title": "author_association",
|
|
40685
40720
|
"type": "string",
|
|
40686
40721
|
"example": "OWNER",
|
|
@@ -40846,7 +40881,7 @@
|
|
|
40846
40881
|
"$ref": "#/components/schemas/nullable-integration"
|
|
40847
40882
|
},
|
|
40848
40883
|
"author_association": {
|
|
40849
|
-
"$ref": "#/components/schemas/
|
|
40884
|
+
"$ref": "#/components/schemas/author-association"
|
|
40850
40885
|
},
|
|
40851
40886
|
"reactions": { "$ref": "#/components/schemas/reaction-rollup" }
|
|
40852
40887
|
},
|
|
@@ -40912,7 +40947,7 @@
|
|
|
40912
40947
|
},
|
|
40913
40948
|
"issue_url": { "type": "string", "format": "uri" },
|
|
40914
40949
|
"author_association": {
|
|
40915
|
-
"$ref": "#/components/schemas/
|
|
40950
|
+
"$ref": "#/components/schemas/author-association"
|
|
40916
40951
|
},
|
|
40917
40952
|
"performed_via_github_app": {
|
|
40918
40953
|
"$ref": "#/components/schemas/nullable-integration"
|
|
@@ -41387,7 +41422,7 @@
|
|
|
41387
41422
|
"example": "2011-04-18T23:23:56Z"
|
|
41388
41423
|
},
|
|
41389
41424
|
"author_association": {
|
|
41390
|
-
"$ref": "#/components/schemas/
|
|
41425
|
+
"$ref": "#/components/schemas/author-association"
|
|
41391
41426
|
}
|
|
41392
41427
|
},
|
|
41393
41428
|
"required": [
|
|
@@ -47107,7 +47142,7 @@
|
|
|
47107
47142
|
"created_at": { "type": "string", "format": "date-time" },
|
|
47108
47143
|
"updated_at": { "type": "string", "format": "date-time" },
|
|
47109
47144
|
"author_association": {
|
|
47110
|
-
"$ref": "#/components/schemas/
|
|
47145
|
+
"$ref": "#/components/schemas/author-association"
|
|
47111
47146
|
},
|
|
47112
47147
|
"reactions": { "$ref": "#/components/schemas/reaction-rollup" }
|
|
47113
47148
|
},
|
|
@@ -47152,7 +47187,7 @@
|
|
|
47152
47187
|
"properties": { "href": { "type": "string" } },
|
|
47153
47188
|
"required": ["href"]
|
|
47154
47189
|
},
|
|
47155
|
-
"
|
|
47190
|
+
"auto-merge": {
|
|
47156
47191
|
"title": "Auto merge",
|
|
47157
47192
|
"description": "The status of auto merging a pull request.",
|
|
47158
47193
|
"type": "object",
|
|
@@ -47368,9 +47403,9 @@
|
|
|
47368
47403
|
]
|
|
47369
47404
|
},
|
|
47370
47405
|
"author_association": {
|
|
47371
|
-
"$ref": "#/components/schemas/
|
|
47406
|
+
"$ref": "#/components/schemas/author-association"
|
|
47372
47407
|
},
|
|
47373
|
-
"auto_merge": { "$ref": "#/components/schemas/
|
|
47408
|
+
"auto_merge": { "$ref": "#/components/schemas/auto-merge" },
|
|
47374
47409
|
"draft": {
|
|
47375
47410
|
"description": "Indicates whether or not the pull request is a draft.",
|
|
47376
47411
|
"example": false,
|
|
@@ -48094,7 +48129,7 @@
|
|
|
48094
48129
|
"example": 30,
|
|
48095
48130
|
"description": "The amount of time to delay a job after the job is initially triggered. The time (in minutes) must be an integer between 0 and 43,200 (30 days)."
|
|
48096
48131
|
},
|
|
48097
|
-
"
|
|
48132
|
+
"deployment-branch-policy": {
|
|
48098
48133
|
"type": "object",
|
|
48099
48134
|
"description": "The type of deployment branch policy for this environment. To allow all branches to deploy, set to `null`.",
|
|
48100
48135
|
"properties": {
|
|
@@ -48215,7 +48250,7 @@
|
|
|
48215
48250
|
}
|
|
48216
48251
|
},
|
|
48217
48252
|
"deployment_branch_policy": {
|
|
48218
|
-
"$ref": "#/components/schemas/
|
|
48253
|
+
"$ref": "#/components/schemas/deployment-branch-policy"
|
|
48219
48254
|
}
|
|
48220
48255
|
},
|
|
48221
48256
|
"required": [
|
|
@@ -48732,7 +48767,7 @@
|
|
|
48732
48767
|
"$ref": "#/components/schemas/nullable-integration"
|
|
48733
48768
|
},
|
|
48734
48769
|
"author_association": {
|
|
48735
|
-
"$ref": "#/components/schemas/
|
|
48770
|
+
"$ref": "#/components/schemas/author-association"
|
|
48736
48771
|
},
|
|
48737
48772
|
"reactions": { "$ref": "#/components/schemas/reaction-rollup" }
|
|
48738
48773
|
},
|
|
@@ -48862,7 +48897,7 @@
|
|
|
48862
48897
|
},
|
|
48863
48898
|
"rename": { "$ref": "#/components/schemas/issue-event-rename" },
|
|
48864
48899
|
"author_association": {
|
|
48865
|
-
"$ref": "#/components/schemas/
|
|
48900
|
+
"$ref": "#/components/schemas/author-association"
|
|
48866
48901
|
},
|
|
48867
48902
|
"lock_reason": { "type": "string", "nullable": true },
|
|
48868
48903
|
"performed_via_github_app": {
|
|
@@ -49565,7 +49600,7 @@
|
|
|
49565
49600
|
},
|
|
49566
49601
|
"issue_url": { "type": "string", "format": "uri" },
|
|
49567
49602
|
"author_association": {
|
|
49568
|
-
"$ref": "#/components/schemas/
|
|
49603
|
+
"$ref": "#/components/schemas/author-association"
|
|
49569
49604
|
},
|
|
49570
49605
|
"performed_via_github_app": {
|
|
49571
49606
|
"$ref": "#/components/schemas/nullable-integration"
|
|
@@ -49780,7 +49815,7 @@
|
|
|
49780
49815
|
"body_html": { "type": "string" },
|
|
49781
49816
|
"body_text": { "type": "string" },
|
|
49782
49817
|
"author_association": {
|
|
49783
|
-
"$ref": "#/components/schemas/
|
|
49818
|
+
"$ref": "#/components/schemas/author-association"
|
|
49784
49819
|
}
|
|
49785
49820
|
},
|
|
49786
49821
|
"required": [
|
|
@@ -49887,7 +49922,7 @@
|
|
|
49887
49922
|
"example": "https://api.github.com/repos/octocat/Hello-World/pulls/1"
|
|
49888
49923
|
},
|
|
49889
49924
|
"author_association": {
|
|
49890
|
-
"$ref": "#/components/schemas/
|
|
49925
|
+
"$ref": "#/components/schemas/author-association"
|
|
49891
49926
|
},
|
|
49892
49927
|
"_links": {
|
|
49893
49928
|
"type": "object",
|
|
@@ -51326,9 +51361,9 @@
|
|
|
51326
51361
|
]
|
|
51327
51362
|
},
|
|
51328
51363
|
"author_association": {
|
|
51329
|
-
"$ref": "#/components/schemas/
|
|
51364
|
+
"$ref": "#/components/schemas/author-association"
|
|
51330
51365
|
},
|
|
51331
|
-
"auto_merge": { "$ref": "#/components/schemas/
|
|
51366
|
+
"auto_merge": { "$ref": "#/components/schemas/auto-merge" },
|
|
51332
51367
|
"draft": {
|
|
51333
51368
|
"description": "Indicates whether or not the pull request is a draft.",
|
|
51334
51369
|
"example": false,
|
|
@@ -51483,7 +51518,7 @@
|
|
|
51483
51518
|
"body_html": { "type": "string" },
|
|
51484
51519
|
"body_text": { "type": "string" },
|
|
51485
51520
|
"author_association": {
|
|
51486
|
-
"$ref": "#/components/schemas/
|
|
51521
|
+
"$ref": "#/components/schemas/author-association"
|
|
51487
51522
|
}
|
|
51488
51523
|
},
|
|
51489
51524
|
"required": [
|
|
@@ -51558,7 +51593,7 @@
|
|
|
51558
51593
|
"example": "https://api.github.com/repos/octocat/Hello-World/pulls/1"
|
|
51559
51594
|
},
|
|
51560
51595
|
"author_association": {
|
|
51561
|
-
"$ref": "#/components/schemas/
|
|
51596
|
+
"$ref": "#/components/schemas/author-association"
|
|
51562
51597
|
},
|
|
51563
51598
|
"_links": {
|
|
51564
51599
|
"type": "object",
|
|
@@ -52166,7 +52201,7 @@
|
|
|
52166
52201
|
"body": { "type": "string" },
|
|
52167
52202
|
"score": { "type": "number" },
|
|
52168
52203
|
"author_association": {
|
|
52169
|
-
"$ref": "#/components/schemas/
|
|
52204
|
+
"$ref": "#/components/schemas/author-association"
|
|
52170
52205
|
},
|
|
52171
52206
|
"draft": { "type": "boolean" },
|
|
52172
52207
|
"repository": { "$ref": "#/components/schemas/repository" },
|
|
@@ -58137,6 +58172,69 @@
|
|
|
58137
58172
|
]
|
|
58138
58173
|
}
|
|
58139
58174
|
},
|
|
58175
|
+
"public-org-events-items": {
|
|
58176
|
+
"value": [
|
|
58177
|
+
{
|
|
58178
|
+
"id": "22237752260",
|
|
58179
|
+
"type": "WatchEvent",
|
|
58180
|
+
"actor": {
|
|
58181
|
+
"id": 583231,
|
|
58182
|
+
"login": "octocat",
|
|
58183
|
+
"display_login": "octocat",
|
|
58184
|
+
"gravatar_id": "",
|
|
58185
|
+
"url": "https://api.github.com/users/octocat",
|
|
58186
|
+
"avatar_url": "https://avatars.githubusercontent.com/u/583231?v=4"
|
|
58187
|
+
},
|
|
58188
|
+
"repo": {
|
|
58189
|
+
"id": 1296269,
|
|
58190
|
+
"name": "octo-org/octo-repo",
|
|
58191
|
+
"url": "https://api.github.com/repos/octo-org/octo-repo"
|
|
58192
|
+
},
|
|
58193
|
+
"payload": { "action": "started" },
|
|
58194
|
+
"public": true,
|
|
58195
|
+
"created_at": "2022-06-08T23:29:25Z"
|
|
58196
|
+
},
|
|
58197
|
+
{
|
|
58198
|
+
"id": "22249084964",
|
|
58199
|
+
"type": "PushEvent",
|
|
58200
|
+
"actor": {
|
|
58201
|
+
"id": 583231,
|
|
58202
|
+
"login": "octocat",
|
|
58203
|
+
"display_login": "octocat",
|
|
58204
|
+
"gravatar_id": "",
|
|
58205
|
+
"url": "https://api.github.com/users/octocat",
|
|
58206
|
+
"avatar_url": "https://avatars.githubusercontent.com/u/583231?v=4"
|
|
58207
|
+
},
|
|
58208
|
+
"repo": {
|
|
58209
|
+
"id": 1296269,
|
|
58210
|
+
"name": "octo-org/octo-repo",
|
|
58211
|
+
"url": "https://api.github.com/repos/octo-org/oct-repo"
|
|
58212
|
+
},
|
|
58213
|
+
"payload": {
|
|
58214
|
+
"push_id": 10115855396,
|
|
58215
|
+
"size": 1,
|
|
58216
|
+
"distinct_size": 1,
|
|
58217
|
+
"ref": "refs/heads/master",
|
|
58218
|
+
"head": "7a8f3ac80e2ad2f6842cb86f576d4bfe2c03e300",
|
|
58219
|
+
"before": "883efe034920928c47fe18598c01249d1a9fdabd",
|
|
58220
|
+
"commits": [
|
|
58221
|
+
{
|
|
58222
|
+
"sha": "7a8f3ac80e2ad2f6842cb86f576d4bfe2c03e300",
|
|
58223
|
+
"author": {
|
|
58224
|
+
"email": "octocat@github.com",
|
|
58225
|
+
"name": "Monalisa Octocat"
|
|
58226
|
+
},
|
|
58227
|
+
"message": "commit",
|
|
58228
|
+
"distinct": true,
|
|
58229
|
+
"url": "https://api.github.com/repos/octo-org/oct-repo/commits/7a8f3ac80e2ad2f6842cb86f576d4bfe2c03e300"
|
|
58230
|
+
}
|
|
58231
|
+
]
|
|
58232
|
+
},
|
|
58233
|
+
"public": true,
|
|
58234
|
+
"created_at": "2022-06-09T12:47:28Z"
|
|
58235
|
+
}
|
|
58236
|
+
]
|
|
58237
|
+
},
|
|
58140
58238
|
"org-hook-items": {
|
|
58141
58239
|
"value": [
|
|
58142
58240
|
{
|
|
@@ -65769,6 +65867,69 @@
|
|
|
65769
65867
|
}
|
|
65770
65868
|
}
|
|
65771
65869
|
},
|
|
65870
|
+
"repo-events-items": {
|
|
65871
|
+
"value": [
|
|
65872
|
+
{
|
|
65873
|
+
"id": "22249084964",
|
|
65874
|
+
"type": "PushEvent",
|
|
65875
|
+
"actor": {
|
|
65876
|
+
"id": 583231,
|
|
65877
|
+
"login": "octocat",
|
|
65878
|
+
"display_login": "octocat",
|
|
65879
|
+
"gravatar_id": "",
|
|
65880
|
+
"url": "https://api.github.com/users/octocat",
|
|
65881
|
+
"avatar_url": "https://avatars.githubusercontent.com/u/583231?v=4"
|
|
65882
|
+
},
|
|
65883
|
+
"repo": {
|
|
65884
|
+
"id": 1296269,
|
|
65885
|
+
"name": "octocat/Hello-World",
|
|
65886
|
+
"url": "https://api.github.com/repos/octocat/Hello-World"
|
|
65887
|
+
},
|
|
65888
|
+
"payload": {
|
|
65889
|
+
"push_id": 10115855396,
|
|
65890
|
+
"size": 1,
|
|
65891
|
+
"distinct_size": 1,
|
|
65892
|
+
"ref": "refs/heads/master",
|
|
65893
|
+
"head": "7a8f3ac80e2ad2f6842cb86f576d4bfe2c03e300",
|
|
65894
|
+
"before": "883efe034920928c47fe18598c01249d1a9fdabd",
|
|
65895
|
+
"commits": [
|
|
65896
|
+
{
|
|
65897
|
+
"sha": "7a8f3ac80e2ad2f6842cb86f576d4bfe2c03e300",
|
|
65898
|
+
"author": {
|
|
65899
|
+
"email": "octocat@github.com",
|
|
65900
|
+
"name": "Monalisa Octocat"
|
|
65901
|
+
},
|
|
65902
|
+
"message": "commit",
|
|
65903
|
+
"distinct": true,
|
|
65904
|
+
"url": "https://api.github.com/repos/octocat/Hello-World/commits/7a8f3ac80e2ad2f6842cb86f576d4bfe2c03e300"
|
|
65905
|
+
}
|
|
65906
|
+
]
|
|
65907
|
+
},
|
|
65908
|
+
"public": true,
|
|
65909
|
+
"created_at": "2022-06-09T12:47:28Z"
|
|
65910
|
+
},
|
|
65911
|
+
{
|
|
65912
|
+
"id": "22237752260",
|
|
65913
|
+
"type": "WatchEvent",
|
|
65914
|
+
"actor": {
|
|
65915
|
+
"id": 583231,
|
|
65916
|
+
"login": "octocat",
|
|
65917
|
+
"display_login": "octocat",
|
|
65918
|
+
"gravatar_id": "",
|
|
65919
|
+
"url": "https://api.github.com/users/octocat",
|
|
65920
|
+
"avatar_url": "https://avatars.githubusercontent.com/u/583231?v=4"
|
|
65921
|
+
},
|
|
65922
|
+
"repo": {
|
|
65923
|
+
"id": 1296269,
|
|
65924
|
+
"name": "octocat/Hello-World",
|
|
65925
|
+
"url": "https://api.github.com/repos/octocat/Hello-World"
|
|
65926
|
+
},
|
|
65927
|
+
"payload": { "action": "started" },
|
|
65928
|
+
"public": true,
|
|
65929
|
+
"created_at": "2022-06-08T23:29:25Z"
|
|
65930
|
+
}
|
|
65931
|
+
]
|
|
65932
|
+
},
|
|
65772
65933
|
"minimal-repository-items-2": {
|
|
65773
65934
|
"value": [
|
|
65774
65935
|
{
|
|
@@ -2577,6 +2577,29 @@
|
|
|
2577
2577
|
}
|
|
2578
2578
|
}
|
|
2579
2579
|
},
|
|
2580
|
+
"/orgs/{org}/actions/secrets/{secret_name}": {
|
|
2581
|
+
"put": {
|
|
2582
|
+
"request_body": {
|
|
2583
|
+
"content_changed": {
|
|
2584
|
+
"changed": {
|
|
2585
|
+
"application/json": {
|
|
2586
|
+
"schema_changed": {
|
|
2587
|
+
"properties_changed": {
|
|
2588
|
+
"changed": {
|
|
2589
|
+
"selected_repository_ids": {
|
|
2590
|
+
"items_changed": {
|
|
2591
|
+
"type_changed": { "to": "integer" }
|
|
2592
|
+
}
|
|
2593
|
+
}
|
|
2594
|
+
}
|
|
2595
|
+
}
|
|
2596
|
+
}
|
|
2597
|
+
}
|
|
2598
|
+
}
|
|
2599
|
+
}
|
|
2600
|
+
}
|
|
2601
|
+
}
|
|
2602
|
+
},
|
|
2580
2603
|
"/orgs/{org}/audit-log": {
|
|
2581
2604
|
"get": {
|
|
2582
2605
|
"parameters": {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"openapi": "3.0.3",
|
|
3
3
|
"info": {
|
|
4
|
-
"version": "6.
|
|
4
|
+
"version": "6.3.0",
|
|
5
5
|
"title": "GitHub's official OpenAPI spec + Octokit extension",
|
|
6
6
|
"description": "OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs",
|
|
7
7
|
"license": { "name": "MIT", "url": "https://spdx.org/licenses/MIT" },
|
|
@@ -13738,6 +13738,101 @@
|
|
|
13738
13738
|
"x-octokit": { "diff": { "ghes-3.4": { "type": "changed" } } }
|
|
13739
13739
|
}
|
|
13740
13740
|
},
|
|
13741
|
+
"/orgs/{org}/actions/secrets/{secret_name}": {
|
|
13742
|
+
"put": {
|
|
13743
|
+
"summary": "Create or update an organization secret",
|
|
13744
|
+
"description": "Creates or updates an organization secret with an encrypted value. Encrypt your secret using\n[LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages). You must authenticate using an access\ntoken with the `admin:org` scope to use this endpoint. GitHub Apps must have the `secrets` organization permission to\nuse this endpoint.\n\n#### Example encrypting a secret using Node.js\n\nEncrypt your secret using the [tweetsodium](https://github.com/github/tweetsodium) library.\n\n```\nconst sodium = require('tweetsodium');\n\nconst key = \"base64-encoded-public-key\";\nconst value = \"plain-text-secret\";\n\n// Convert the message and key to Uint8Array's (Buffer implements that interface)\nconst messageBytes = Buffer.from(value);\nconst keyBytes = Buffer.from(key, 'base64');\n\n// Encrypt using LibSodium.\nconst encryptedBytes = sodium.seal(messageBytes, keyBytes);\n\n// Base64 the encrypted secret\nconst encrypted = Buffer.from(encryptedBytes).toString('base64');\n\nconsole.log(encrypted);\n```\n\n\n#### Example encrypting a secret using Python\n\nEncrypt your secret using [pynacl](https://pynacl.readthedocs.io/en/latest/public/#nacl-public-sealedbox) with Python 3.\n\n```\nfrom base64 import b64encode\nfrom nacl import encoding, public\n\ndef encrypt(public_key: str, secret_value: str) -> str:\n \"\"\"Encrypt a Unicode string using the public key.\"\"\"\n public_key = public.PublicKey(public_key.encode(\"utf-8\"), encoding.Base64Encoder())\n sealed_box = public.SealedBox(public_key)\n encrypted = sealed_box.encrypt(secret_value.encode(\"utf-8\"))\n return b64encode(encrypted).decode(\"utf-8\")\n```\n\n#### Example encrypting a secret using C#\n\nEncrypt your secret using the [Sodium.Core](https://www.nuget.org/packages/Sodium.Core/) package.\n\n```\nvar secretValue = System.Text.Encoding.UTF8.GetBytes(\"mySecret\");\nvar publicKey = Convert.FromBase64String(\"2Sg8iYjAxxmI2LvUXpJjkYrMxURPc8r+dB7TJyvvcCU=\");\n\nvar sealedPublicKeyBox = Sodium.SealedPublicKeyBox.Create(secretValue, publicKey);\n\nConsole.WriteLine(Convert.ToBase64String(sealedPublicKeyBox));\n```\n\n#### Example encrypting a secret using Ruby\n\nEncrypt your secret using the [rbnacl](https://github.com/RubyCrypto/rbnacl) gem.\n\n```ruby\nrequire \"rbnacl\"\nrequire \"base64\"\n\nkey = Base64.decode64(\"+ZYvJDZMHUfBkJdyq5Zm9SKqeuBQ4sj+6sfjlH4CgG0=\")\npublic_key = RbNaCl::PublicKey.new(key)\n\nbox = RbNaCl::Boxes::Sealed.from_public_key(public_key)\nencrypted_secret = box.encrypt(\"my_secret\")\n\n# Print the base64 encoded secret\nputs Base64.strict_encode64(encrypted_secret)\n```",
|
|
13745
|
+
"tags": ["actions"],
|
|
13746
|
+
"operationId": "actions/create-or-update-org-secret",
|
|
13747
|
+
"externalDocs": {
|
|
13748
|
+
"description": "API method documentation",
|
|
13749
|
+
"url": "https://docs.github.com/enterprise-server@3.3/rest/reference/actions#create-or-update-an-organization-secret"
|
|
13750
|
+
},
|
|
13751
|
+
"parameters": [
|
|
13752
|
+
{
|
|
13753
|
+
"name": "org",
|
|
13754
|
+
"description": "The organization name. The name is not case sensitive.",
|
|
13755
|
+
"in": "path",
|
|
13756
|
+
"required": true,
|
|
13757
|
+
"schema": { "type": "string" }
|
|
13758
|
+
},
|
|
13759
|
+
{
|
|
13760
|
+
"name": "secret_name",
|
|
13761
|
+
"description": "The name of the secret.",
|
|
13762
|
+
"in": "path",
|
|
13763
|
+
"required": true,
|
|
13764
|
+
"schema": { "type": "string" }
|
|
13765
|
+
}
|
|
13766
|
+
],
|
|
13767
|
+
"requestBody": {
|
|
13768
|
+
"required": true,
|
|
13769
|
+
"content": {
|
|
13770
|
+
"application/json": {
|
|
13771
|
+
"schema": {
|
|
13772
|
+
"type": "object",
|
|
13773
|
+
"properties": {
|
|
13774
|
+
"encrypted_value": {
|
|
13775
|
+
"type": "string",
|
|
13776
|
+
"description": "Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an organization public key](https://docs.github.com/enterprise-server@3.3/rest/reference/actions#get-an-organization-public-key) endpoint.",
|
|
13777
|
+
"pattern": "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$"
|
|
13778
|
+
},
|
|
13779
|
+
"key_id": {
|
|
13780
|
+
"type": "string",
|
|
13781
|
+
"description": "ID of the key you used to encrypt the secret."
|
|
13782
|
+
},
|
|
13783
|
+
"visibility": {
|
|
13784
|
+
"type": "string",
|
|
13785
|
+
"description": "Which type of organization repositories have access to the organization secret. `selected` means only the repositories specified by `selected_repository_ids` can access the secret.",
|
|
13786
|
+
"enum": ["all", "private", "selected"]
|
|
13787
|
+
},
|
|
13788
|
+
"selected_repository_ids": {
|
|
13789
|
+
"type": "array",
|
|
13790
|
+
"description": "An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/enterprise-server@3.3/rest/reference/actions#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/enterprise-server@3.3/rest/reference/actions#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/enterprise-server@3.3/rest/reference/actions#remove-selected-repository-from-an-organization-secret) endpoints.",
|
|
13791
|
+
"items": { "type": "integer" }
|
|
13792
|
+
}
|
|
13793
|
+
},
|
|
13794
|
+
"required": ["visibility"]
|
|
13795
|
+
},
|
|
13796
|
+
"examples": {
|
|
13797
|
+
"default": {
|
|
13798
|
+
"value": {
|
|
13799
|
+
"encrypted_value": "c2VjcmV0",
|
|
13800
|
+
"key_id": "012345678912345678",
|
|
13801
|
+
"visibility": "selected",
|
|
13802
|
+
"selected_repository_ids": [1296269, 1296280]
|
|
13803
|
+
}
|
|
13804
|
+
}
|
|
13805
|
+
}
|
|
13806
|
+
}
|
|
13807
|
+
}
|
|
13808
|
+
},
|
|
13809
|
+
"responses": {
|
|
13810
|
+
"201": {
|
|
13811
|
+
"description": "Response when creating a secret",
|
|
13812
|
+
"content": {
|
|
13813
|
+
"application/json": {
|
|
13814
|
+
"schema": {
|
|
13815
|
+
"title": "Empty Object",
|
|
13816
|
+
"description": "An object without any properties.",
|
|
13817
|
+
"type": "object",
|
|
13818
|
+
"properties": {},
|
|
13819
|
+
"additionalProperties": false
|
|
13820
|
+
},
|
|
13821
|
+
"examples": { "default": { "value": null } }
|
|
13822
|
+
}
|
|
13823
|
+
}
|
|
13824
|
+
},
|
|
13825
|
+
"204": { "description": "Response when updating a secret" }
|
|
13826
|
+
},
|
|
13827
|
+
"x-github": {
|
|
13828
|
+
"githubCloudOnly": false,
|
|
13829
|
+
"enabledForGitHubApps": true,
|
|
13830
|
+
"category": "actions",
|
|
13831
|
+
"subcategory": "secrets"
|
|
13832
|
+
},
|
|
13833
|
+
"x-octokit": { "diff": { "ghes-3.4": { "type": "changed" } } }
|
|
13834
|
+
}
|
|
13835
|
+
},
|
|
13741
13836
|
"/orgs/{org}/audit-log": {
|
|
13742
13837
|
"get": {
|
|
13743
13838
|
"summary": "Get the audit log for an organization",
|