@octokit/openapi 7.3.0 → 7.6.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.
Files changed (35) hide show
  1. package/generated/api.github.com.deref.json +9963 -140
  2. package/generated/api.github.com.json +1055 -110
  3. package/generated/ghes-3.2-diff-to-api.github.com.deref.json +1 -1
  4. package/generated/ghes-3.2-diff-to-api.github.com.json +1 -1
  5. package/generated/ghes-3.2-diff-to-ghes-3.3.deref.json +133 -25
  6. package/generated/ghes-3.2-diff-to-ghes-3.3.json +127 -14
  7. package/generated/ghes-3.2.deref.json +458 -242
  8. package/generated/ghes-3.2.json +694 -35
  9. package/generated/ghes-3.3-anicca-diff-to-ghes-3.4.deref.json +0 -16
  10. package/generated/ghes-3.3-diff-to-ghes-3.4.deref.json +187 -223
  11. package/generated/ghes-3.3-diff-to-ghes-3.4.json +432 -10
  12. package/generated/ghes-3.3.deref.json +458 -244
  13. package/generated/ghes-3.3.json +694 -36
  14. package/generated/ghes-3.4-diff-to-ghes-3.5.deref.json +9 -1
  15. package/generated/ghes-3.4-diff-to-ghes-3.5.json +9 -1
  16. package/generated/ghes-3.4.deref.json +462 -230
  17. package/generated/ghes-3.4.json +703 -38
  18. package/generated/ghes-3.5-anicca-diff-to-ghes-3.6.deref.json +1548 -135
  19. package/generated/ghes-3.5-diff-to-api.github.com.deref.json +1 -1
  20. package/generated/ghes-3.5-diff-to-api.github.com.json +1 -1
  21. package/generated/ghes-3.5-diff-to-ghes-3.6.deref.json +48182 -31728
  22. package/generated/ghes-3.5-diff-to-ghes-3.6.json +9496 -4686
  23. package/generated/ghes-3.5.deref.json +556 -242
  24. package/generated/ghes-3.5.json +797 -50
  25. package/generated/ghes-3.6-anicca-diff-to-api.github.com.deref.json +433 -88
  26. package/generated/ghes-3.6-diff-to-api.github.com.deref.json +17473 -6079
  27. package/generated/ghes-3.6-diff-to-api.github.com.json +4604 -2146
  28. package/generated/ghes-3.6.deref.json +8136 -240
  29. package/generated/ghes-3.6.json +1109 -133
  30. package/generated/github.ae-anicca-diff-to-api.github.com.deref.json +1018 -34
  31. package/generated/github.ae-diff-to-api.github.com.deref.json +24735 -16611
  32. package/generated/github.ae-diff-to-api.github.com.json +1390 -126
  33. package/generated/github.ae.deref.json +1214 -163
  34. package/generated/github.ae.json +821 -44
  35. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "openapi": "3.0.3",
3
3
  "info": {
4
- "version": "7.3.0",
4
+ "version": "7.6.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": {
@@ -2906,7 +2906,13 @@
2906
2906
  "category": "apps",
2907
2907
  "subcategory": null
2908
2908
  },
2909
- "x-octokit": {}
2909
+ "x-octokit": {
2910
+ "diff": {
2911
+ "api.github.com": {
2912
+ "type": "changed"
2913
+ }
2914
+ }
2915
+ }
2910
2916
  }
2911
2917
  },
2912
2918
  "/app/installations/{installation_id}": {
@@ -2952,7 +2958,13 @@
2952
2958
  "category": "apps",
2953
2959
  "subcategory": null
2954
2960
  },
2955
- "x-octokit": {}
2961
+ "x-octokit": {
2962
+ "diff": {
2963
+ "api.github.com": {
2964
+ "type": "changed"
2965
+ }
2966
+ }
2967
+ }
2956
2968
  },
2957
2969
  "delete": {
2958
2970
  "summary": "Delete an installation for the authenticated app",
@@ -3083,7 +3095,13 @@
3083
3095
  "category": "apps",
3084
3096
  "subcategory": null
3085
3097
  },
3086
- "x-octokit": {}
3098
+ "x-octokit": {
3099
+ "diff": {
3100
+ "api.github.com": {
3101
+ "type": "changed"
3102
+ }
3103
+ }
3104
+ }
3087
3105
  }
3088
3106
  },
3089
3107
  "/app/installations/{installation_id}/suspended": {
@@ -3476,7 +3494,13 @@
3476
3494
  "category": "apps",
3477
3495
  "subcategory": "oauth-applications"
3478
3496
  },
3479
- "x-octokit": {}
3497
+ "x-octokit": {
3498
+ "diff": {
3499
+ "api.github.com": {
3500
+ "type": "changed"
3501
+ }
3502
+ }
3503
+ }
3480
3504
  },
3481
3505
  "patch": {
3482
3506
  "summary": "Reset a token",
@@ -3546,7 +3570,13 @@
3546
3570
  "category": "apps",
3547
3571
  "subcategory": "oauth-applications"
3548
3572
  },
3549
- "x-octokit": {}
3573
+ "x-octokit": {
3574
+ "diff": {
3575
+ "api.github.com": {
3576
+ "type": "changed"
3577
+ }
3578
+ }
3579
+ }
3550
3580
  },
3551
3581
  "delete": {
3552
3582
  "summary": "Delete an app token",
@@ -3723,7 +3753,13 @@
3723
3753
  "category": "apps",
3724
3754
  "subcategory": "oauth-applications"
3725
3755
  },
3726
- "x-octokit": {}
3756
+ "x-octokit": {
3757
+ "diff": {
3758
+ "api.github.com": {
3759
+ "type": "changed"
3760
+ }
3761
+ }
3762
+ }
3727
3763
  }
3728
3764
  },
3729
3765
  "/apps/{app_slug}": {
@@ -10002,7 +10038,7 @@
10002
10038
  "/organizations/{organization_id}/custom_roles": {
10003
10039
  "get": {
10004
10040
  "summary": "List custom repository roles in an organization",
10005
- "description": "List the custom repository roles available in this organization. In order to see custom\nrepository roles in an organization, the authenticated user must be an organization owner.\n\nFor more information on custom repository roles, see \"[Managing custom repository roles for an organization](https://docs.github.com/enterprise-server@3.6/organizations/managing-peoples-access-to-your-organization-with-roles/managing-custom-repository-roles-for-an-organization)\".",
10041
+ "description": "List the custom repository roles available in this organization. In order to see custom\nrepository roles in an organization, the authenticated user must be an organization owner.\n\nTo use this endpoint the authenticated user must be an administrator for the organization or of an repository of the organizaiton and must use an access token with `admin:org repo` scope.\nGitHub Apps must have the `organization_custom_roles:read` organization permission to use this endpoint.\n\nFor more information on custom repository roles, see \"[Managing custom repository roles for an organization](https://docs.github.com/enterprise-server@3.6/organizations/managing-peoples-access-to-your-organization-with-roles/managing-custom-repository-roles-for-an-organization)\".",
10006
10042
  "tags": [
10007
10043
  "orgs"
10008
10044
  ],
@@ -10014,6 +10050,7 @@
10014
10050
  "parameters": [
10015
10051
  {
10016
10052
  "name": "organization_id",
10053
+ "description": "The unique identifier of the organization.",
10017
10054
  "in": "path",
10018
10055
  "required": true,
10019
10056
  "schema": {
@@ -10211,6 +10248,11 @@
10211
10248
  "description": "Whether organization members can fork private organization repositories.",
10212
10249
  "default": false
10213
10250
  },
10251
+ "web_commit_signoff_required": {
10252
+ "type": "boolean",
10253
+ "description": "Whether contributors to organization repositories are required to sign off on commits they make through GitHub's web interface.",
10254
+ "default": false
10255
+ },
10214
10256
  "blog": {
10215
10257
  "type": "string",
10216
10258
  "example": "\"http://github.blog\""
@@ -14214,7 +14256,13 @@
14214
14256
  "category": "apps",
14215
14257
  "subcategory": null
14216
14258
  },
14217
- "x-octokit": {}
14259
+ "x-octokit": {
14260
+ "diff": {
14261
+ "api.github.com": {
14262
+ "type": "changed"
14263
+ }
14264
+ }
14265
+ }
14218
14266
  }
14219
14267
  },
14220
14268
  "/orgs/{org}/installations": {
@@ -14283,7 +14331,13 @@
14283
14331
  "category": "orgs",
14284
14332
  "subcategory": null
14285
14333
  },
14286
- "x-octokit": {}
14334
+ "x-octokit": {
14335
+ "diff": {
14336
+ "api.github.com": {
14337
+ "type": "changed"
14338
+ }
14339
+ }
14340
+ }
14287
14341
  }
14288
14342
  },
14289
14343
  "/orgs/{org}/issues": {
@@ -16033,6 +16087,40 @@
16033
16087
  "type": "boolean",
16034
16088
  "description": "Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message.",
16035
16089
  "default": false
16090
+ },
16091
+ "squash_merge_commit_title": {
16092
+ "type": "string",
16093
+ "enum": [
16094
+ "PR_TITLE",
16095
+ "COMMIT_OR_PR_TITLE"
16096
+ ],
16097
+ "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
16098
+ },
16099
+ "squash_merge_commit_message": {
16100
+ "type": "string",
16101
+ "enum": [
16102
+ "PR_BODY",
16103
+ "COMMIT_MESSAGES",
16104
+ "BLANK"
16105
+ ],
16106
+ "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
16107
+ },
16108
+ "merge_commit_title": {
16109
+ "type": "string",
16110
+ "enum": [
16111
+ "PR_TITLE",
16112
+ "MERGE_MESSAGE"
16113
+ ],
16114
+ "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
16115
+ },
16116
+ "merge_commit_message": {
16117
+ "type": "string",
16118
+ "enum": [
16119
+ "PR_BODY",
16120
+ "PR_TITLE",
16121
+ "BLANK"
16122
+ ],
16123
+ "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
16036
16124
  }
16037
16125
  },
16038
16126
  "required": [
@@ -20226,6 +20314,40 @@
20226
20314
  "description": "Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message.",
20227
20315
  "default": false
20228
20316
  },
20317
+ "squash_merge_commit_title": {
20318
+ "type": "string",
20319
+ "enum": [
20320
+ "PR_TITLE",
20321
+ "COMMIT_OR_PR_TITLE"
20322
+ ],
20323
+ "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
20324
+ },
20325
+ "squash_merge_commit_message": {
20326
+ "type": "string",
20327
+ "enum": [
20328
+ "PR_BODY",
20329
+ "COMMIT_MESSAGES",
20330
+ "BLANK"
20331
+ ],
20332
+ "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
20333
+ },
20334
+ "merge_commit_title": {
20335
+ "type": "string",
20336
+ "enum": [
20337
+ "PR_TITLE",
20338
+ "MERGE_MESSAGE"
20339
+ ],
20340
+ "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
20341
+ },
20342
+ "merge_commit_message": {
20343
+ "type": "string",
20344
+ "enum": [
20345
+ "PR_BODY",
20346
+ "PR_TITLE",
20347
+ "BLANK"
20348
+ ],
20349
+ "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
20350
+ },
20229
20351
  "archived": {
20230
20352
  "type": "boolean",
20231
20353
  "description": "`true` to archive this repository. **Note**: You cannot unarchive repositories through the API.",
@@ -20235,6 +20357,11 @@
20235
20357
  "type": "boolean",
20236
20358
  "description": "Either `true` to allow private forks, or `false` to prevent private forks.",
20237
20359
  "default": false
20360
+ },
20361
+ "web_commit_signoff_required": {
20362
+ "type": "boolean",
20363
+ "description": "Either `true` to require contributors to sign off on web-based commits, or `false` to not require contributors to sign off on web-based commits.",
20364
+ "default": false
20238
20365
  }
20239
20366
  }
20240
20367
  },
@@ -20847,6 +20974,11 @@
20847
20974
  "description": "Whether to enable debug logging for the re-run."
20848
20975
  }
20849
20976
  }
20977
+ },
20978
+ "examples": {
20979
+ "default": {
20980
+ "value": null
20981
+ }
20850
20982
  }
20851
20983
  }
20852
20984
  }
@@ -22384,9 +22516,12 @@
22384
22516
  "content": {
22385
22517
  "application/json": {
22386
22518
  "schema": {
22387
- "type": "object",
22388
- "properties": {},
22389
- "additionalProperties": false
22519
+ "$ref": "#/components/schemas/empty-object"
22520
+ },
22521
+ "examples": {
22522
+ "default": {
22523
+ "value": null
22524
+ }
22390
22525
  }
22391
22526
  }
22392
22527
  }
@@ -22691,6 +22826,17 @@
22691
22826
  "state",
22692
22827
  "comment"
22693
22828
  ]
22829
+ },
22830
+ "examples": {
22831
+ "default": {
22832
+ "value": {
22833
+ "environment_ids": [
22834
+ 161171787
22835
+ ],
22836
+ "state": "approved",
22837
+ "comment": "Ship it!"
22838
+ }
22839
+ }
22694
22840
  }
22695
22841
  }
22696
22842
  }
@@ -22761,6 +22907,11 @@
22761
22907
  "description": "Whether to enable debug logging for the re-run."
22762
22908
  }
22763
22909
  }
22910
+ },
22911
+ "examples": {
22912
+ "default": {
22913
+ "value": null
22914
+ }
22764
22915
  }
22765
22916
  }
22766
22917
  }
@@ -22771,9 +22922,12 @@
22771
22922
  "content": {
22772
22923
  "application/json": {
22773
22924
  "schema": {
22774
- "type": "object",
22775
- "properties": {},
22776
- "additionalProperties": false
22925
+ "$ref": "#/components/schemas/empty-object"
22926
+ },
22927
+ "examples": {
22928
+ "default": {
22929
+ "value": null
22930
+ }
22777
22931
  }
22778
22932
  }
22779
22933
  }
@@ -22825,6 +22979,11 @@
22825
22979
  "description": "Whether to enable debug logging for the re-run."
22826
22980
  }
22827
22981
  }
22982
+ },
22983
+ "examples": {
22984
+ "default": {
22985
+ "value": null
22986
+ }
22828
22987
  }
22829
22988
  }
22830
22989
  }
@@ -23078,9 +23237,12 @@
23078
23237
  "content": {
23079
23238
  "application/json": {
23080
23239
  "schema": {
23081
- "type": "object",
23082
- "properties": {},
23083
- "additionalProperties": false
23240
+ "$ref": "#/components/schemas/empty-object"
23241
+ },
23242
+ "examples": {
23243
+ "default": {
23244
+ "value": null
23245
+ }
23084
23246
  }
23085
23247
  }
23086
23248
  }
@@ -23963,6 +24125,11 @@
23963
24125
  "application/json": {
23964
24126
  "schema": {
23965
24127
  "$ref": "#/components/schemas/branch-with-protection"
24128
+ },
24129
+ "examples": {
24130
+ "default": {
24131
+ "$ref": "#/components/examples/branch-get"
24132
+ }
23966
24133
  }
23967
24134
  }
23968
24135
  }
@@ -24305,6 +24472,11 @@
24305
24472
  "application/json": {
24306
24473
  "schema": {
24307
24474
  "$ref": "#/components/schemas/protected-branch"
24475
+ },
24476
+ "examples": {
24477
+ "default": {
24478
+ "$ref": "#/components/examples/branch-protection-update"
24479
+ }
24308
24480
  }
24309
24481
  }
24310
24482
  }
@@ -25179,7 +25351,7 @@
25179
25351
  "properties": {
25180
25352
  "contexts": {
25181
25353
  "type": "array",
25182
- "description": "contexts parameter",
25354
+ "description": "The name of the status checks",
25183
25355
  "items": {
25184
25356
  "type": "string"
25185
25357
  }
@@ -25195,6 +25367,17 @@
25195
25367
  }
25196
25368
  }
25197
25369
  ]
25370
+ },
25371
+ "examples": {
25372
+ "default": {
25373
+ "summary": "Example adding status checks to a branch protection rule",
25374
+ "value": {
25375
+ "contexts": [
25376
+ "continuous-integration/travis-ci",
25377
+ "continuous-integration/jenkins"
25378
+ ]
25379
+ }
25380
+ }
25198
25381
  }
25199
25382
  }
25200
25383
  }
@@ -25273,7 +25456,7 @@
25273
25456
  "properties": {
25274
25457
  "contexts": {
25275
25458
  "type": "array",
25276
- "description": "contexts parameter",
25459
+ "description": "The name of the status checks",
25277
25460
  "items": {
25278
25461
  "type": "string"
25279
25462
  }
@@ -25289,97 +25472,117 @@
25289
25472
  }
25290
25473
  }
25291
25474
  ]
25292
- }
25293
- }
25294
- }
25295
- },
25296
- "responses": {
25297
- "200": {
25298
- "description": "Response",
25299
- "content": {
25300
- "application/json": {
25301
- "schema": {
25302
- "type": "array",
25303
- "items": {
25304
- "type": "string"
25305
- }
25306
- },
25307
- "examples": {
25308
- "default": {
25309
- "value": [
25475
+ },
25476
+ "examples": {
25477
+ "default": {
25478
+ "summary": "Example updating status checks for a branch protection rule",
25479
+ "value": {
25480
+ "contexts": [
25481
+ "continuous-integration/travis-ci"
25482
+ ]
25483
+ }
25484
+ }
25485
+ }
25486
+ }
25487
+ }
25488
+ },
25489
+ "responses": {
25490
+ "200": {
25491
+ "description": "Response",
25492
+ "content": {
25493
+ "application/json": {
25494
+ "schema": {
25495
+ "type": "array",
25496
+ "items": {
25497
+ "type": "string"
25498
+ }
25499
+ },
25500
+ "examples": {
25501
+ "default": {
25502
+ "value": [
25503
+ "continuous-integration/travis-ci"
25504
+ ]
25505
+ }
25506
+ }
25507
+ }
25508
+ }
25509
+ },
25510
+ "404": {
25511
+ "$ref": "#/components/responses/not_found"
25512
+ },
25513
+ "422": {
25514
+ "$ref": "#/components/responses/validation_failed"
25515
+ }
25516
+ },
25517
+ "x-github": {
25518
+ "githubCloudOnly": false,
25519
+ "enabledForGitHubApps": true,
25520
+ "requestBodyParameterName": "contexts",
25521
+ "category": "repos",
25522
+ "subcategory": "branches"
25523
+ },
25524
+ "x-octokit": {}
25525
+ },
25526
+ "delete": {
25527
+ "summary": "Remove status check contexts",
25528
+ "description": "Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation.",
25529
+ "tags": [
25530
+ "repos"
25531
+ ],
25532
+ "operationId": "repos/remove-status-check-contexts",
25533
+ "externalDocs": {
25534
+ "description": "API method documentation",
25535
+ "url": "https://docs.github.com/enterprise-server@3.6/rest/reference/repos#remove-status-check-contexts"
25536
+ },
25537
+ "parameters": [
25538
+ {
25539
+ "$ref": "#/components/parameters/owner"
25540
+ },
25541
+ {
25542
+ "$ref": "#/components/parameters/repo"
25543
+ },
25544
+ {
25545
+ "$ref": "#/components/parameters/branch"
25546
+ }
25547
+ ],
25548
+ "requestBody": {
25549
+ "content": {
25550
+ "application/json": {
25551
+ "schema": {
25552
+ "oneOf": [
25553
+ {
25554
+ "type": "object",
25555
+ "properties": {
25556
+ "contexts": {
25557
+ "type": "array",
25558
+ "description": "The name of the status checks",
25559
+ "items": {
25560
+ "type": "string"
25561
+ }
25562
+ }
25563
+ },
25564
+ "required": [
25565
+ "contexts"
25566
+ ],
25567
+ "example": {
25568
+ "contexts": [
25569
+ "contexts"
25570
+ ]
25571
+ }
25572
+ }
25573
+ ]
25574
+ },
25575
+ "examples": {
25576
+ "default": {
25577
+ "summary": "Example removing status checks from a branch protection rule",
25578
+ "value": {
25579
+ "contexts": [
25310
25580
  "continuous-integration/travis-ci"
25311
25581
  ]
25312
25582
  }
25313
25583
  }
25314
25584
  }
25315
25585
  }
25316
- },
25317
- "404": {
25318
- "$ref": "#/components/responses/not_found"
25319
- },
25320
- "422": {
25321
- "$ref": "#/components/responses/validation_failed"
25322
- }
25323
- },
25324
- "x-github": {
25325
- "githubCloudOnly": false,
25326
- "enabledForGitHubApps": true,
25327
- "requestBodyParameterName": "contexts",
25328
- "category": "repos",
25329
- "subcategory": "branches"
25330
- },
25331
- "x-octokit": {}
25332
- },
25333
- "delete": {
25334
- "summary": "Remove status check contexts",
25335
- "description": "Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation.",
25336
- "tags": [
25337
- "repos"
25338
- ],
25339
- "operationId": "repos/remove-status-check-contexts",
25340
- "externalDocs": {
25341
- "description": "API method documentation",
25342
- "url": "https://docs.github.com/enterprise-server@3.6/rest/reference/repos#remove-status-check-contexts"
25343
- },
25344
- "parameters": [
25345
- {
25346
- "$ref": "#/components/parameters/owner"
25347
- },
25348
- {
25349
- "$ref": "#/components/parameters/repo"
25350
- },
25351
- {
25352
- "$ref": "#/components/parameters/branch"
25353
- }
25354
- ],
25355
- "requestBody": {
25356
- "content": {
25357
- "application/json": {
25358
- "schema": {
25359
- "oneOf": [
25360
- {
25361
- "type": "object",
25362
- "properties": {
25363
- "contexts": {
25364
- "type": "array",
25365
- "description": "contexts parameter",
25366
- "items": {
25367
- "type": "string"
25368
- }
25369
- }
25370
- },
25371
- "required": [
25372
- "contexts"
25373
- ],
25374
- "example": {
25375
- "contexts": [
25376
- "contexts"
25377
- ]
25378
- }
25379
- }
25380
- ]
25381
- }
25382
- }
25383
25586
  }
25384
25587
  },
25385
25588
  "responses": {
@@ -25903,7 +26106,7 @@
25903
26106
  "properties": {
25904
26107
  "teams": {
25905
26108
  "type": "array",
25906
- "description": "teams parameter",
26109
+ "description": "The slug values for teams",
25907
26110
  "items": {
25908
26111
  "type": "string"
25909
26112
  }
@@ -25919,6 +26122,16 @@
25919
26122
  }
25920
26123
  }
25921
26124
  ]
26125
+ },
26126
+ "examples": {
26127
+ "default": {
26128
+ "summary": "Example adding a team in a branch protection rule",
26129
+ "value": {
26130
+ "teams": [
26131
+ "justice-league"
26132
+ ]
26133
+ }
26134
+ }
25922
26135
  }
25923
26136
  }
25924
26137
  }
@@ -25988,7 +26201,7 @@
25988
26201
  "properties": {
25989
26202
  "teams": {
25990
26203
  "type": "array",
25991
- "description": "teams parameter",
26204
+ "description": "The slug values for teams",
25992
26205
  "items": {
25993
26206
  "type": "string"
25994
26207
  }
@@ -25999,11 +26212,21 @@
25999
26212
  ],
26000
26213
  "example": {
26001
26214
  "teams": [
26002
- "my-team"
26215
+ "justice-league"
26003
26216
  ]
26004
26217
  }
26005
26218
  }
26006
26219
  ]
26220
+ },
26221
+ "examples": {
26222
+ "default": {
26223
+ "summary": "Example replacing a team in a branch protection rule",
26224
+ "value": {
26225
+ "teams": [
26226
+ "justice-league"
26227
+ ]
26228
+ }
26229
+ }
26007
26230
  }
26008
26231
  }
26009
26232
  }
@@ -26072,7 +26295,7 @@
26072
26295
  "properties": {
26073
26296
  "teams": {
26074
26297
  "type": "array",
26075
- "description": "teams parameter",
26298
+ "description": "The slug values for teams",
26076
26299
  "items": {
26077
26300
  "type": "string"
26078
26301
  }
@@ -26088,6 +26311,16 @@
26088
26311
  }
26089
26312
  }
26090
26313
  ]
26314
+ },
26315
+ "examples": {
26316
+ "default": {
26317
+ "summary": "Example removing a team in a branch protection rule",
26318
+ "value": {
26319
+ "teams": [
26320
+ "justice-league"
26321
+ ]
26322
+ }
26323
+ }
26091
26324
  }
26092
26325
  }
26093
26326
  }
@@ -26212,7 +26445,7 @@
26212
26445
  "properties": {
26213
26446
  "users": {
26214
26447
  "type": "array",
26215
- "description": "users parameter",
26448
+ "description": "The username for users",
26216
26449
  "items": {
26217
26450
  "type": "string"
26218
26451
  }
@@ -26228,6 +26461,16 @@
26228
26461
  }
26229
26462
  }
26230
26463
  ]
26464
+ },
26465
+ "examples": {
26466
+ "default": {
26467
+ "summary": "Example adding a user in a branch protection rule",
26468
+ "value": {
26469
+ "users": [
26470
+ "octocat"
26471
+ ]
26472
+ }
26473
+ }
26231
26474
  }
26232
26475
  }
26233
26476
  }
@@ -26297,7 +26540,7 @@
26297
26540
  "properties": {
26298
26541
  "users": {
26299
26542
  "type": "array",
26300
- "description": "users parameter",
26543
+ "description": "The username for users",
26301
26544
  "items": {
26302
26545
  "type": "string"
26303
26546
  }
@@ -26313,6 +26556,16 @@
26313
26556
  }
26314
26557
  }
26315
26558
  ]
26559
+ },
26560
+ "examples": {
26561
+ "default": {
26562
+ "summary": "Example replacing a user in a branch protection rule",
26563
+ "value": {
26564
+ "users": [
26565
+ "octocat"
26566
+ ]
26567
+ }
26568
+ }
26316
26569
  }
26317
26570
  }
26318
26571
  }
@@ -26381,7 +26634,7 @@
26381
26634
  "properties": {
26382
26635
  "users": {
26383
26636
  "type": "array",
26384
- "description": "users parameter",
26637
+ "description": "The username for users",
26385
26638
  "items": {
26386
26639
  "type": "string"
26387
26640
  }
@@ -26397,6 +26650,16 @@
26397
26650
  }
26398
26651
  }
26399
26652
  ]
26653
+ },
26654
+ "examples": {
26655
+ "default": {
26656
+ "summary": "Example removing a user in a branch protection rule",
26657
+ "value": {
26658
+ "users": [
26659
+ "octocat"
26660
+ ]
26661
+ }
26662
+ }
26400
26663
  }
26401
26664
  }
26402
26665
  }
@@ -28148,7 +28411,13 @@
28148
28411
  "githubCloudOnly": false,
28149
28412
  "category": "code-scanning"
28150
28413
  },
28151
- "x-octokit": {}
28414
+ "x-octokit": {
28415
+ "diff": {
28416
+ "api.github.com": {
28417
+ "type": "changed"
28418
+ }
28419
+ }
28420
+ }
28152
28421
  }
28153
28422
  },
28154
28423
  "/repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}": {
@@ -28226,7 +28495,7 @@
28226
28495
  },
28227
28496
  "delete": {
28228
28497
  "summary": "Delete a code scanning analysis from a repository",
28229
- "description": "Deletes a specified code scanning analysis from a repository. For\nprivate repositories, you must use an access token with the `repo` scope. For public repositories,\nyou must use an access token with `public_repo` scope.\nGitHub Apps must have the `security_events` write permission to use this endpoint.\n\nYou can delete one analysis at a time.\nTo delete a series of analyses, start with the most recent analysis and work backwards.\nConceptually, the process is similar to the undo function in a text editor.\n\nWhen you list the analyses for a repository,\none or more will be identified as deletable in the response:\n\n```\n\"deletable\": true\n```\n\nAn analysis is deletable when it's the most recent in a set of analyses.\nTypically, a repository will have multiple sets of analyses\nfor each enabled code scanning tool,\nwhere a set is determined by a unique combination of analysis values:\n\n* `ref`\n* `tool`\n* `analysis_key`\n* `environment`\n\nIf you attempt to delete an analysis that is not the most recent in a set,\nyou'll get a 400 response with the message:\n\n```\nAnalysis specified is not deletable.\n```\n\nThe response from a successful `DELETE` operation provides you with\ntwo alternative URLs for deleting the next analysis in the set:\n`next_analysis_url` and `confirm_delete_url`.\nUse the `next_analysis_url` URL if you want to avoid accidentally deleting the final analysis\nin a set. This is a useful option if you want to preserve at least one analysis\nfor the specified tool in your repository.\nUse the `confirm_delete_url` URL if you are content to remove all analyses for a tool.\nWhen you delete the last analysis in a set, the value of `next_analysis_url` and `confirm_delete_url`\nin the 200 response is `null`.\n\nAs an example of the deletion process,\nlet's imagine that you added a workflow that configured a particular code scanning tool\nto analyze the code in a repository. This tool has added 15 analyses:\n10 on the default branch, and another 5 on a topic branch.\nYou therefore have two separate sets of analyses for this tool.\nYou've now decided that you want to remove all of the analyses for the tool.\nTo do this you must make 15 separate deletion requests.\nTo start, you must find an analysis that's identified as deletable.\nEach set of analyses always has one that's identified as deletable.\nHaving found the deletable analysis for one of the two sets,\ndelete this analysis and then continue deleting the next analysis in the set until they're all deleted.\nThen repeat the process for the second set.\nThe procedure therefore consists of a nested loop:\n\n**Outer loop**:\n* List the analyses for the repository, filtered by tool.\n* Parse this list to find a deletable analysis. If found:\n\n **Inner loop**:\n * Delete the identified analysis.\n * Parse the response for the value of `confirm_delete_url` and, if found, use this in the next iteration.\n\nThe above process assumes that you want to remove all trace of the tool's analyses from the GitHub user interface, for the specified repository, and it therefore uses the `confirm_delete_url` value. Alternatively, you could use the `next_analysis_url` value, which would leave the last analysis in each set undeleted to avoid removing a tool's analysis entirely.",
28498
+ "description": "Deletes a specified code scanning analysis from a repository. For\nprivate repositories, you must use an access token with the `repo` scope. For public repositories,\nyou must use an access token with `public_repo` scope.\nGitHub Apps must have the `security_events` write permission to use this endpoint.\n\nYou can delete one analysis at a time.\nTo delete a series of analyses, start with the most recent analysis and work backwards.\nConceptually, the process is similar to the undo function in a text editor.\n\nWhen you list the analyses for a repository,\none or more will be identified as deletable in the response:\n\n```\n\"deletable\": true\n```\n\nAn analysis is deletable when it's the most recent in a set of analyses.\nTypically, a repository will have multiple sets of analyses\nfor each enabled code scanning tool,\nwhere a set is determined by a unique combination of analysis values:\n\n* `ref`\n* `tool`\n* `category`\n\nIf you attempt to delete an analysis that is not the most recent in a set,\nyou'll get a 400 response with the message:\n\n```\nAnalysis specified is not deletable.\n```\n\nThe response from a successful `DELETE` operation provides you with\ntwo alternative URLs for deleting the next analysis in the set:\n`next_analysis_url` and `confirm_delete_url`.\nUse the `next_analysis_url` URL if you want to avoid accidentally deleting the final analysis\nin a set. This is a useful option if you want to preserve at least one analysis\nfor the specified tool in your repository.\nUse the `confirm_delete_url` URL if you are content to remove all analyses for a tool.\nWhen you delete the last analysis in a set, the value of `next_analysis_url` and `confirm_delete_url`\nin the 200 response is `null`.\n\nAs an example of the deletion process,\nlet's imagine that you added a workflow that configured a particular code scanning tool\nto analyze the code in a repository. This tool has added 15 analyses:\n10 on the default branch, and another 5 on a topic branch.\nYou therefore have two separate sets of analyses for this tool.\nYou've now decided that you want to remove all of the analyses for the tool.\nTo do this you must make 15 separate deletion requests.\nTo start, you must find an analysis that's identified as deletable.\nEach set of analyses always has one that's identified as deletable.\nHaving found the deletable analysis for one of the two sets,\ndelete this analysis and then continue deleting the next analysis in the set until they're all deleted.\nThen repeat the process for the second set.\nThe procedure therefore consists of a nested loop:\n\n**Outer loop**:\n* List the analyses for the repository, filtered by tool.\n* Parse this list to find a deletable analysis. If found:\n\n **Inner loop**:\n * Delete the identified analysis.\n * Parse the response for the value of `confirm_delete_url` and, if found, use this in the next iteration.\n\nThe above process assumes that you want to remove all trace of the tool's analyses from the GitHub user interface, for the specified repository, and it therefore uses the `confirm_delete_url` value. Alternatively, you could use the `next_analysis_url` value, which would leave the last analysis in each set undeleted to avoid removing a tool's analysis entirely.",
28230
28499
  "operationId": "code-scanning/delete-analysis",
28231
28500
  "tags": [
28232
28501
  "code-scanning"
@@ -30152,7 +30421,7 @@
30152
30421
  "/repos/{owner}/{repo}/contents/{path}": {
30153
30422
  "get": {
30154
30423
  "summary": "Get repository content",
30155
- "description": "Gets the contents of a file or directory in a repository. Specify the file path or directory in `:path`. If you omit\n`:path`, you will receive the contents of the repository's root directory. See the description below regarding what the API response includes for directories. \n\nFiles and symlinks support [a custom media type](https://docs.github.com/enterprise-server@3.6/rest/reference/repos#custom-media-types) for\nretrieving the raw content or rendered HTML (when supported). All content types support [a custom media\ntype](https://docs.github.com/enterprise-server@3.6/rest/reference/repos#custom-media-types) to ensure the content is returned in a consistent\nobject format.\n\n**Note**:\n* To get a repository's contents recursively, you can [recursively get the tree](https://docs.github.com/enterprise-server@3.6/rest/reference/git#trees).\n* This API has an upper limit of 1,000 files for a directory. If you need to retrieve more files, use the [Git Trees\nAPI](https://docs.github.com/enterprise-server@3.6/rest/reference/git#get-a-tree).\n\n#### Size limits\nIf the requested file's size is:\n* 1 MB or smaller: All features of this endpoint are supported.\n* Between 1-100 MB: Only the `raw` or `object` [custom media types](https://docs.github.com/enterprise-server@3.6/rest/repos/contents#custom-media-types-for-repository-contents) are supported. Both will work as normal, except that when using the `object` media type, the `content` field will be an empty string and the `encoding` field will be `\"none\"`. To get the contents of these larger files, use the `raw` media type.\n * Greater than 100 MB: This endpoint is not supported.\n\n#### If the content is a directory\nThe response will be an array of objects, one object for each item in the directory.\nWhen listing the contents of a directory, submodules have their \"type\" specified as \"file\". Logically, the value\n_should_ be \"submodule\". This behavior exists in API v3 [for backwards compatibility purposes](https://git.io/v1YCW).\nIn the next major version of the API, the type will be returned as \"submodule\".\n\n#### If the content is a symlink \nIf the requested `:path` points to a symlink, and the symlink's target is a normal file in the repository, then the\nAPI responds with the content of the file (in the format shown in the example. Otherwise, the API responds with an object \ndescribing the symlink itself.\n\n#### If the content is a submodule\nThe `submodule_git_url` identifies the location of the submodule repository, and the `sha` identifies a specific\ncommit within the submodule repository. Git uses the given URL when cloning the submodule repository, and checks out\nthe submodule at that specific commit.\n\nIf the submodule repository is not hosted on github.com, the Git URLs (`git_url` and `_links[\"git\"]`) and the\ngithub.com URLs (`html_url` and `_links[\"html\"]`) will have null values.",
30424
+ "description": "Gets the contents of a file or directory in a repository. Specify the file path or directory in `:path`. If you omit\n`:path`, you will receive the contents of the repository's root directory. See the description below regarding what the API response includes for directories. \n\nFiles and symlinks support [a custom media type](https://docs.github.com/enterprise-server@3.6/rest/reference/repos#custom-media-types) for\nretrieving the raw content or rendered HTML (when supported). All content types support [a custom media\ntype](https://docs.github.com/enterprise-server@3.6/rest/reference/repos#custom-media-types) to ensure the content is returned in a consistent\nobject format.\n\n**Notes**:\n* To get a repository's contents recursively, you can [recursively get the tree](https://docs.github.com/enterprise-server@3.6/rest/reference/git#trees).\n* This API has an upper limit of 1,000 files for a directory. If you need to retrieve more files, use the [Git Trees\nAPI](https://docs.github.com/enterprise-server@3.6/rest/reference/git#get-a-tree).\n * Download URLs expire and are meant to be used just once. To ensure the download URL does not expire, please use the contents API to obtain a fresh download URL for each download.\n#### Size limits\nIf the requested file's size is:\n* 1 MB or smaller: All features of this endpoint are supported.\n* Between 1-100 MB: Only the `raw` or `object` [custom media types](https://docs.github.com/enterprise-server@3.6/rest/repos/contents#custom-media-types-for-repository-contents) are supported. Both will work as normal, except that when using the `object` media type, the `content` field will be an empty string and the `encoding` field will be `\"none\"`. To get the contents of these larger files, use the `raw` media type.\n * Greater than 100 MB: This endpoint is not supported.\n\n#### If the content is a directory\nThe response will be an array of objects, one object for each item in the directory.\nWhen listing the contents of a directory, submodules have their \"type\" specified as \"file\". Logically, the value\n_should_ be \"submodule\". This behavior exists in API v3 [for backwards compatibility purposes](https://git.io/v1YCW).\nIn the next major version of the API, the type will be returned as \"submodule\".\n\n#### If the content is a symlink \nIf the requested `:path` points to a symlink, and the symlink's target is a normal file in the repository, then the\nAPI responds with the content of the file (in the format shown in the example. Otherwise, the API responds with an object \ndescribing the symlink itself.\n\n#### If the content is a submodule\nThe `submodule_git_url` identifies the location of the submodule repository, and the `sha` identifies a specific\ncommit within the submodule repository. Git uses the given URL when cloning the submodule repository, and checks out\nthe submodule at that specific commit.\n\nIf the submodule repository is not hosted on github.com, the Git URLs (`git_url` and `_links[\"git\"]`) and the\ngithub.com URLs (`html_url` and `_links[\"html\"]`) will have null values.",
30156
30425
  "tags": [
30157
30426
  "repos"
30158
30427
  ],
@@ -34435,7 +34704,13 @@
34435
34704
  "category": "apps",
34436
34705
  "subcategory": null
34437
34706
  },
34438
- "x-octokit": {}
34707
+ "x-octokit": {
34708
+ "diff": {
34709
+ "api.github.com": {
34710
+ "type": "changed"
34711
+ }
34712
+ }
34713
+ }
34439
34714
  }
34440
34715
  },
34441
34716
  "/repos/{owner}/{repo}/invitations": {
@@ -34540,6 +34815,14 @@
34540
34815
  ]
34541
34816
  }
34542
34817
  }
34818
+ },
34819
+ "examples": {
34820
+ "default": {
34821
+ "summary": "Example request body",
34822
+ "value": {
34823
+ "permissions": "write"
34824
+ }
34825
+ }
34543
34826
  }
34544
34827
  }
34545
34828
  }
@@ -35635,6 +35918,12 @@
35635
35918
  "closed"
35636
35919
  ]
35637
35920
  },
35921
+ "state_reason": {
35922
+ "type": "string",
35923
+ "nullable": true,
35924
+ "description": "The reason for the current state",
35925
+ "example": "not_planned"
35926
+ },
35638
35927
  "milestone": {
35639
35928
  "oneOf": [
35640
35929
  {
@@ -50004,7 +50293,13 @@
50004
50293
  "category": "apps",
50005
50294
  "subcategory": "installations"
50006
50295
  },
50007
- "x-octokit": {}
50296
+ "x-octokit": {
50297
+ "diff": {
50298
+ "api.github.com": {
50299
+ "type": "changed"
50300
+ }
50301
+ }
50302
+ }
50008
50303
  }
50009
50304
  },
50010
50305
  "/user/installations/{installation_id}/repositories": {
@@ -51573,6 +51868,40 @@
51573
51868
  "type": "boolean",
51574
51869
  "example": false
51575
51870
  },
51871
+ "squash_merge_commit_title": {
51872
+ "type": "string",
51873
+ "enum": [
51874
+ "PR_TITLE",
51875
+ "COMMIT_OR_PR_TITLE"
51876
+ ],
51877
+ "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
51878
+ },
51879
+ "squash_merge_commit_message": {
51880
+ "type": "string",
51881
+ "enum": [
51882
+ "PR_BODY",
51883
+ "COMMIT_MESSAGES",
51884
+ "BLANK"
51885
+ ],
51886
+ "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
51887
+ },
51888
+ "merge_commit_title": {
51889
+ "type": "string",
51890
+ "enum": [
51891
+ "PR_TITLE",
51892
+ "MERGE_MESSAGE"
51893
+ ],
51894
+ "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
51895
+ },
51896
+ "merge_commit_message": {
51897
+ "type": "string",
51898
+ "enum": [
51899
+ "PR_BODY",
51900
+ "PR_TITLE",
51901
+ "BLANK"
51902
+ ],
51903
+ "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
51904
+ },
51576
51905
  "has_downloads": {
51577
51906
  "description": "Whether downloads are enabled.",
51578
51907
  "default": true,
@@ -52829,7 +53158,13 @@
52829
53158
  "category": "apps",
52830
53159
  "subcategory": null
52831
53160
  },
52832
- "x-octokit": {}
53161
+ "x-octokit": {
53162
+ "diff": {
53163
+ "api.github.com": {
53164
+ "type": "changed"
53165
+ }
53166
+ }
53167
+ }
52833
53168
  }
52834
53169
  },
52835
53170
  "/users/{username}/keys": {
@@ -58356,14 +58691,6 @@
58356
58691
  "write"
58357
58692
  ]
58358
58693
  },
58359
- "organization_custom_roles": {
58360
- "type": "string",
58361
- "description": "The level of permission to grant the access token for custom roles management.",
58362
- "enum": [
58363
- "read",
58364
- "write"
58365
- ]
58366
- },
58367
58694
  "deployments": {
58368
58695
  "type": "string",
58369
58696
  "description": "The level of permission to grant the access token for deployments and deployment statuses.",
@@ -60304,6 +60631,40 @@
60304
60631
  "use_squash_pr_title_as_default": {
60305
60632
  "type": "boolean"
60306
60633
  },
60634
+ "squash_merge_commit_title": {
60635
+ "type": "string",
60636
+ "enum": [
60637
+ "PR_TITLE",
60638
+ "COMMIT_OR_PR_TITLE"
60639
+ ],
60640
+ "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
60641
+ },
60642
+ "squash_merge_commit_message": {
60643
+ "type": "string",
60644
+ "enum": [
60645
+ "PR_BODY",
60646
+ "COMMIT_MESSAGES",
60647
+ "BLANK"
60648
+ ],
60649
+ "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
60650
+ },
60651
+ "merge_commit_title": {
60652
+ "type": "string",
60653
+ "enum": [
60654
+ "PR_TITLE",
60655
+ "MERGE_MESSAGE"
60656
+ ],
60657
+ "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
60658
+ },
60659
+ "merge_commit_message": {
60660
+ "type": "string",
60661
+ "enum": [
60662
+ "PR_BODY",
60663
+ "PR_TITLE",
60664
+ "BLANK"
60665
+ ],
60666
+ "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
60667
+ },
60307
60668
  "allow_merge_commit": {
60308
60669
  "type": "boolean"
60309
60670
  },
@@ -60347,6 +60708,40 @@
60347
60708
  "description": "Whether a squash merge commit can use the pull request title as default.",
60348
60709
  "default": false
60349
60710
  },
60711
+ "squash_merge_commit_title": {
60712
+ "type": "string",
60713
+ "enum": [
60714
+ "PR_TITLE",
60715
+ "COMMIT_OR_PR_TITLE"
60716
+ ],
60717
+ "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
60718
+ },
60719
+ "squash_merge_commit_message": {
60720
+ "type": "string",
60721
+ "enum": [
60722
+ "PR_BODY",
60723
+ "COMMIT_MESSAGES",
60724
+ "BLANK"
60725
+ ],
60726
+ "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
60727
+ },
60728
+ "merge_commit_title": {
60729
+ "type": "string",
60730
+ "enum": [
60731
+ "PR_TITLE",
60732
+ "MERGE_MESSAGE"
60733
+ ],
60734
+ "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
60735
+ },
60736
+ "merge_commit_message": {
60737
+ "type": "string",
60738
+ "enum": [
60739
+ "PR_BODY",
60740
+ "PR_TITLE",
60741
+ "BLANK"
60742
+ ],
60743
+ "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
60744
+ },
60350
60745
  "allow_merge_commit": {
60351
60746
  "description": "Whether to allow merge commits for pull requests.",
60352
60747
  "default": true,
@@ -60357,6 +60752,11 @@
60357
60752
  "description": "Whether to allow forking this repo",
60358
60753
  "type": "boolean"
60359
60754
  },
60755
+ "web_commit_signoff_required": {
60756
+ "description": "Whether to require contributors to sign off on web-based commits",
60757
+ "default": false,
60758
+ "type": "boolean"
60759
+ },
60360
60760
  "subscribers_count": {
60361
60761
  "type": "integer"
60362
60762
  },
@@ -64329,6 +64729,40 @@
64329
64729
  "use_squash_pr_title_as_default": {
64330
64730
  "type": "boolean"
64331
64731
  },
64732
+ "squash_merge_commit_title": {
64733
+ "type": "string",
64734
+ "enum": [
64735
+ "PR_TITLE",
64736
+ "COMMIT_OR_PR_TITLE"
64737
+ ],
64738
+ "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
64739
+ },
64740
+ "squash_merge_commit_message": {
64741
+ "type": "string",
64742
+ "enum": [
64743
+ "PR_BODY",
64744
+ "COMMIT_MESSAGES",
64745
+ "BLANK"
64746
+ ],
64747
+ "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
64748
+ },
64749
+ "merge_commit_title": {
64750
+ "type": "string",
64751
+ "enum": [
64752
+ "PR_TITLE",
64753
+ "MERGE_MESSAGE"
64754
+ ],
64755
+ "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
64756
+ },
64757
+ "merge_commit_message": {
64758
+ "type": "string",
64759
+ "enum": [
64760
+ "PR_BODY",
64761
+ "PR_TITLE",
64762
+ "BLANK"
64763
+ ],
64764
+ "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
64765
+ },
64332
64766
  "allow_merge_commit": {
64333
64767
  "type": "boolean"
64334
64768
  },
@@ -64372,6 +64806,40 @@
64372
64806
  "description": "Whether a squash merge commit can use the pull request title as default.",
64373
64807
  "default": false
64374
64808
  },
64809
+ "squash_merge_commit_title": {
64810
+ "type": "string",
64811
+ "enum": [
64812
+ "PR_TITLE",
64813
+ "COMMIT_OR_PR_TITLE"
64814
+ ],
64815
+ "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
64816
+ },
64817
+ "squash_merge_commit_message": {
64818
+ "type": "string",
64819
+ "enum": [
64820
+ "PR_BODY",
64821
+ "COMMIT_MESSAGES",
64822
+ "BLANK"
64823
+ ],
64824
+ "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
64825
+ },
64826
+ "merge_commit_title": {
64827
+ "type": "string",
64828
+ "enum": [
64829
+ "PR_TITLE",
64830
+ "MERGE_MESSAGE"
64831
+ ],
64832
+ "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
64833
+ },
64834
+ "merge_commit_message": {
64835
+ "type": "string",
64836
+ "enum": [
64837
+ "PR_BODY",
64838
+ "PR_TITLE",
64839
+ "BLANK"
64840
+ ],
64841
+ "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
64842
+ },
64375
64843
  "allow_merge_commit": {
64376
64844
  "description": "Whether to allow merge commits for pull requests.",
64377
64845
  "default": true,
@@ -64382,6 +64850,11 @@
64382
64850
  "description": "Whether to allow forking this repo",
64383
64851
  "type": "boolean"
64384
64852
  },
64853
+ "web_commit_signoff_required": {
64854
+ "description": "Whether to require contributors to sign off on web-based commits",
64855
+ "default": false,
64856
+ "type": "boolean"
64857
+ },
64385
64858
  "subscribers_count": {
64386
64859
  "type": "integer"
64387
64860
  },
@@ -64851,6 +65324,10 @@
64851
65324
  },
64852
65325
  "allow_forking": {
64853
65326
  "type": "boolean"
65327
+ },
65328
+ "web_commit_signoff_required": {
65329
+ "type": "boolean",
65330
+ "example": false
64854
65331
  }
64855
65332
  },
64856
65333
  "required": [
@@ -65261,6 +65738,10 @@
65261
65738
  "example": false,
65262
65739
  "nullable": true
65263
65740
  },
65741
+ "web_commit_signoff_required": {
65742
+ "type": "boolean",
65743
+ "example": false
65744
+ },
65264
65745
  "updated_at": {
65265
65746
  "type": "string",
65266
65747
  "format": "date-time"
@@ -66381,6 +66862,267 @@
66381
66862
  "parent"
66382
66863
  ]
66383
66864
  },
66865
+ "team-organization": {
66866
+ "title": "Team Organization",
66867
+ "description": "Team Organization",
66868
+ "type": "object",
66869
+ "properties": {
66870
+ "login": {
66871
+ "type": "string",
66872
+ "example": "github"
66873
+ },
66874
+ "id": {
66875
+ "type": "integer",
66876
+ "example": 1
66877
+ },
66878
+ "node_id": {
66879
+ "type": "string",
66880
+ "example": "MDEyOk9yZ2FuaXphdGlvbjE="
66881
+ },
66882
+ "url": {
66883
+ "type": "string",
66884
+ "format": "uri",
66885
+ "example": "https://api.github.com/orgs/github"
66886
+ },
66887
+ "repos_url": {
66888
+ "type": "string",
66889
+ "format": "uri",
66890
+ "example": "https://api.github.com/orgs/github/repos"
66891
+ },
66892
+ "events_url": {
66893
+ "type": "string",
66894
+ "format": "uri",
66895
+ "example": "https://api.github.com/orgs/github/events"
66896
+ },
66897
+ "hooks_url": {
66898
+ "type": "string",
66899
+ "example": "https://api.github.com/orgs/github/hooks"
66900
+ },
66901
+ "issues_url": {
66902
+ "type": "string",
66903
+ "example": "https://api.github.com/orgs/github/issues"
66904
+ },
66905
+ "members_url": {
66906
+ "type": "string",
66907
+ "example": "https://api.github.com/orgs/github/members{/member}"
66908
+ },
66909
+ "public_members_url": {
66910
+ "type": "string",
66911
+ "example": "https://api.github.com/orgs/github/public_members{/member}"
66912
+ },
66913
+ "avatar_url": {
66914
+ "type": "string",
66915
+ "example": "https://github.com/images/error/octocat_happy.gif"
66916
+ },
66917
+ "description": {
66918
+ "type": "string",
66919
+ "example": "A great organization",
66920
+ "nullable": true
66921
+ },
66922
+ "name": {
66923
+ "type": "string",
66924
+ "example": "github"
66925
+ },
66926
+ "company": {
66927
+ "type": "string",
66928
+ "example": "GitHub"
66929
+ },
66930
+ "blog": {
66931
+ "type": "string",
66932
+ "format": "uri",
66933
+ "example": "https://github.com/blog"
66934
+ },
66935
+ "location": {
66936
+ "type": "string",
66937
+ "example": "San Francisco"
66938
+ },
66939
+ "email": {
66940
+ "type": "string",
66941
+ "format": "email",
66942
+ "example": "octocat@github.com"
66943
+ },
66944
+ "twitter_username": {
66945
+ "type": "string",
66946
+ "example": "github",
66947
+ "nullable": true
66948
+ },
66949
+ "is_verified": {
66950
+ "type": "boolean",
66951
+ "example": true
66952
+ },
66953
+ "has_organization_projects": {
66954
+ "type": "boolean",
66955
+ "example": true
66956
+ },
66957
+ "has_repository_projects": {
66958
+ "type": "boolean",
66959
+ "example": true
66960
+ },
66961
+ "public_repos": {
66962
+ "type": "integer",
66963
+ "example": 2
66964
+ },
66965
+ "public_gists": {
66966
+ "type": "integer",
66967
+ "example": 1
66968
+ },
66969
+ "followers": {
66970
+ "type": "integer",
66971
+ "example": 20
66972
+ },
66973
+ "following": {
66974
+ "type": "integer",
66975
+ "example": 0
66976
+ },
66977
+ "html_url": {
66978
+ "type": "string",
66979
+ "format": "uri",
66980
+ "example": "https://github.com/octocat"
66981
+ },
66982
+ "created_at": {
66983
+ "type": "string",
66984
+ "format": "date-time",
66985
+ "example": "2008-01-14T04:33:35Z"
66986
+ },
66987
+ "type": {
66988
+ "type": "string",
66989
+ "example": "Organization"
66990
+ },
66991
+ "total_private_repos": {
66992
+ "type": "integer",
66993
+ "example": 100
66994
+ },
66995
+ "owned_private_repos": {
66996
+ "type": "integer",
66997
+ "example": 100
66998
+ },
66999
+ "private_gists": {
67000
+ "type": "integer",
67001
+ "example": 81,
67002
+ "nullable": true
67003
+ },
67004
+ "disk_usage": {
67005
+ "type": "integer",
67006
+ "example": 10000,
67007
+ "nullable": true
67008
+ },
67009
+ "collaborators": {
67010
+ "type": "integer",
67011
+ "example": 8,
67012
+ "nullable": true
67013
+ },
67014
+ "billing_email": {
67015
+ "type": "string",
67016
+ "format": "email",
67017
+ "example": "org@example.com",
67018
+ "nullable": true
67019
+ },
67020
+ "plan": {
67021
+ "type": "object",
67022
+ "properties": {
67023
+ "name": {
67024
+ "type": "string"
67025
+ },
67026
+ "space": {
67027
+ "type": "integer"
67028
+ },
67029
+ "private_repos": {
67030
+ "type": "integer"
67031
+ },
67032
+ "filled_seats": {
67033
+ "type": "integer"
67034
+ },
67035
+ "seats": {
67036
+ "type": "integer"
67037
+ }
67038
+ },
67039
+ "required": [
67040
+ "name",
67041
+ "space",
67042
+ "private_repos"
67043
+ ]
67044
+ },
67045
+ "default_repository_permission": {
67046
+ "type": "string",
67047
+ "nullable": true
67048
+ },
67049
+ "members_can_create_repositories": {
67050
+ "type": "boolean",
67051
+ "example": true,
67052
+ "nullable": true
67053
+ },
67054
+ "two_factor_requirement_enabled": {
67055
+ "type": "boolean",
67056
+ "example": true,
67057
+ "nullable": true
67058
+ },
67059
+ "members_allowed_repository_creation_type": {
67060
+ "type": "string",
67061
+ "example": "all"
67062
+ },
67063
+ "members_can_create_public_repositories": {
67064
+ "type": "boolean",
67065
+ "example": true
67066
+ },
67067
+ "members_can_create_private_repositories": {
67068
+ "type": "boolean",
67069
+ "example": true
67070
+ },
67071
+ "members_can_create_internal_repositories": {
67072
+ "type": "boolean",
67073
+ "example": true
67074
+ },
67075
+ "members_can_create_pages": {
67076
+ "type": "boolean",
67077
+ "example": true
67078
+ },
67079
+ "members_can_create_public_pages": {
67080
+ "type": "boolean",
67081
+ "example": true
67082
+ },
67083
+ "members_can_create_private_pages": {
67084
+ "type": "boolean",
67085
+ "example": true
67086
+ },
67087
+ "members_can_fork_private_repositories": {
67088
+ "type": "boolean",
67089
+ "example": false,
67090
+ "nullable": true
67091
+ },
67092
+ "web_commit_signoff_required": {
67093
+ "type": "boolean",
67094
+ "example": false
67095
+ },
67096
+ "updated_at": {
67097
+ "type": "string",
67098
+ "format": "date-time"
67099
+ }
67100
+ },
67101
+ "required": [
67102
+ "login",
67103
+ "url",
67104
+ "id",
67105
+ "node_id",
67106
+ "repos_url",
67107
+ "events_url",
67108
+ "hooks_url",
67109
+ "issues_url",
67110
+ "members_url",
67111
+ "public_members_url",
67112
+ "avatar_url",
67113
+ "description",
67114
+ "html_url",
67115
+ "has_organization_projects",
67116
+ "has_repository_projects",
67117
+ "public_repos",
67118
+ "public_gists",
67119
+ "followers",
67120
+ "following",
67121
+ "type",
67122
+ "created_at",
67123
+ "updated_at"
67124
+ ]
67125
+ },
66384
67126
  "team-full": {
66385
67127
  "title": "Full Team",
66386
67128
  "description": "Groups of organization members that gives permissions on specified repositories.",
@@ -66465,7 +67207,7 @@
66465
67207
  "example": "2017-08-17T12:37:15Z"
66466
67208
  },
66467
67209
  "organization": {
66468
- "$ref": "#/components/schemas/organization-full"
67210
+ "$ref": "#/components/schemas/team-organization"
66469
67211
  },
66470
67212
  "ldap_dn": {
66471
67213
  "description": "Distinguished Name (DN) that team maps to within LDAP environment",
@@ -67261,6 +68003,12 @@
67261
68003
  "type": "boolean",
67262
68004
  "example": false
67263
68005
  },
68006
+ "web_commit_signoff_required": {
68007
+ "description": "Whether to require contributors to sign off on web-based commits",
68008
+ "default": false,
68009
+ "type": "boolean",
68010
+ "example": false
68011
+ },
67264
68012
  "subscribers_count": {
67265
68013
  "type": "integer"
67266
68014
  },
@@ -68028,10 +68776,52 @@
68028
68776
  "type": "boolean",
68029
68777
  "example": false
68030
68778
  },
68779
+ "squash_merge_commit_title": {
68780
+ "type": "string",
68781
+ "example": "PR_TITLE",
68782
+ "enum": [
68783
+ "PR_TITLE",
68784
+ "COMMIT_OR_PR_TITLE"
68785
+ ],
68786
+ "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
68787
+ },
68788
+ "squash_merge_commit_message": {
68789
+ "type": "string",
68790
+ "example": "PR_BODY",
68791
+ "enum": [
68792
+ "PR_BODY",
68793
+ "COMMIT_MESSAGES",
68794
+ "BLANK"
68795
+ ],
68796
+ "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
68797
+ },
68798
+ "merge_commit_title": {
68799
+ "type": "string",
68800
+ "example": "PR_TITLE",
68801
+ "enum": [
68802
+ "PR_TITLE",
68803
+ "MERGE_MESSAGE"
68804
+ ],
68805
+ "description": "The default value for a merge commit title.\n\n - `PR_TITLE` - default to the pull request's title.\n - `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
68806
+ },
68807
+ "merge_commit_message": {
68808
+ "type": "string",
68809
+ "example": "PR_BODY",
68810
+ "enum": [
68811
+ "PR_BODY",
68812
+ "PR_TITLE",
68813
+ "BLANK"
68814
+ ],
68815
+ "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
68816
+ },
68031
68817
  "allow_forking": {
68032
68818
  "type": "boolean",
68033
68819
  "example": true
68034
68820
  },
68821
+ "web_commit_signoff_required": {
68822
+ "type": "boolean",
68823
+ "example": false
68824
+ },
68035
68825
  "subscribers_count": {
68036
68826
  "type": "integer",
68037
68827
  "example": 42
@@ -77795,6 +78585,9 @@
77795
78585
  },
77796
78586
  "is_template": {
77797
78587
  "type": "boolean"
78588
+ },
78589
+ "web_commit_signoff_required": {
78590
+ "type": "boolean"
77798
78591
  }
77799
78592
  },
77800
78593
  "required": [
@@ -78369,6 +79162,9 @@
78369
79162
  },
78370
79163
  "allow_forking": {
78371
79164
  "type": "boolean"
79165
+ },
79166
+ "web_commit_signoff_required": {
79167
+ "type": "boolean"
78372
79168
  }
78373
79169
  },
78374
79170
  "required": [
@@ -80446,6 +81242,10 @@
80446
81242
  },
80447
81243
  "is_template": {
80448
81244
  "type": "boolean"
81245
+ },
81246
+ "web_commit_signoff_required": {
81247
+ "type": "boolean",
81248
+ "example": false
80449
81249
  }
80450
81250
  },
80451
81251
  "required": [
@@ -86927,6 +87727,7 @@
86927
87727
  "members_can_create_public_pages": true,
86928
87728
  "members_can_create_private_pages": true,
86929
87729
  "members_can_fork_private_repositories": false,
87730
+ "web_commit_signoff_required": false,
86930
87731
  "updated_at": "2014-03-03T18:58:10Z"
86931
87732
  }
86932
87733
  },
@@ -90709,6 +91510,7 @@
90709
91510
  "delete_branch_on_merge": true,
90710
91511
  "allow_merge_commit": true,
90711
91512
  "allow_forking": true,
91513
+ "web_commit_signoff_required": false,
90712
91514
  "subscribers_count": 42,
90713
91515
  "network_count": 0,
90714
91516
  "organization": {
@@ -91997,6 +92799,109 @@
91997
92799
  }
91998
92800
  ]
91999
92801
  },
92802
+ "branch-get": {
92803
+ "value": {
92804
+ "name": "main",
92805
+ "commit": {
92806
+ "sha": "7fd1a60b01f91b314f59955a4e4d4e80d8edf11d",
92807
+ "node_id": "MDY6Q29tbWl0MTI5NjI2OTo3ZmQxYTYwYjAxZjkxYjMxNGY1OTk1NWE0ZTRkNGU4MGQ4ZWRmMTFk",
92808
+ "commit": {
92809
+ "author": {
92810
+ "name": "The Octocat",
92811
+ "email": "octocat@nowhere.com",
92812
+ "date": "2012-03-06T23:06:50Z"
92813
+ },
92814
+ "committer": {
92815
+ "name": "The Octocat",
92816
+ "email": "octocat@nowhere.com",
92817
+ "date": "2012-03-06T23:06:50Z"
92818
+ },
92819
+ "message": "Merge pull request #6 from Spaceghost/patch-1\n\nNew line at end of file.",
92820
+ "tree": {
92821
+ "sha": "b4eecafa9be2f2006ce1b709d6857b07069b4608",
92822
+ "url": "https://api.github.com/repos/octocat/Hello-World/git/trees/b4eecafa9be2f2006ce1b709d6857b07069b4608"
92823
+ },
92824
+ "url": "https://api.github.com/repos/octocat/Hello-World/git/commits/7fd1a60b01f91b314f59955a4e4d4e80d8edf11d",
92825
+ "comment_count": 77,
92826
+ "verification": {
92827
+ "verified": false,
92828
+ "reason": "unsigned",
92829
+ "signature": null,
92830
+ "payload": null
92831
+ }
92832
+ },
92833
+ "url": "https://api.github.com/repos/octocat/Hello-World/commits/7fd1a60b01f91b314f59955a4e4d4e80d8edf11d",
92834
+ "html_url": "https://github.com/octocat/Hello-World/commit/7fd1a60b01f91b314f59955a4e4d4e80d8edf11d",
92835
+ "comments_url": "https://api.github.com/repos/octocat/Hello-World/commits/7fd1a60b01f91b314f59955a4e4d4e80d8edf11d/comments",
92836
+ "author": {
92837
+ "login": "octocat",
92838
+ "id": 583231,
92839
+ "node_id": "MDQ6VXNlcjU4MzIzMQ==",
92840
+ "avatar_url": "https://avatars.githubusercontent.com/u/583231?v=4",
92841
+ "gravatar_id": "",
92842
+ "url": "https://api.github.com/users/octocat",
92843
+ "html_url": "https://github.com/octocat",
92844
+ "followers_url": "https://api.github.com/users/octocat/followers",
92845
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
92846
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
92847
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
92848
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
92849
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
92850
+ "repos_url": "https://api.github.com/users/octocat/repos",
92851
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
92852
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
92853
+ "type": "User",
92854
+ "site_admin": false
92855
+ },
92856
+ "committer": {
92857
+ "login": "octocat",
92858
+ "id": 583231,
92859
+ "node_id": "MDQ6VXNlcjU4MzIzMQ==",
92860
+ "avatar_url": "https://avatars.githubusercontent.com/u/583231?v=4",
92861
+ "gravatar_id": "",
92862
+ "url": "https://api.github.com/users/octocat",
92863
+ "html_url": "https://github.com/octocat",
92864
+ "followers_url": "https://api.github.com/users/octocat/followers",
92865
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
92866
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
92867
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
92868
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
92869
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
92870
+ "repos_url": "https://api.github.com/users/octocat/repos",
92871
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
92872
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
92873
+ "type": "User",
92874
+ "site_admin": false
92875
+ },
92876
+ "parents": [
92877
+ {
92878
+ "sha": "553c2077f0edc3d5dc5d17262f6aa498e69d6f8e",
92879
+ "url": "https://api.github.com/repos/octocat/Hello-World/commits/553c2077f0edc3d5dc5d17262f6aa498e69d6f8e",
92880
+ "html_url": "https://github.com/octocat/Hello-World/commit/553c2077f0edc3d5dc5d17262f6aa498e69d6f8e"
92881
+ },
92882
+ {
92883
+ "sha": "762941318ee16e59dabbacb1b4049eec22f0d303",
92884
+ "url": "https://api.github.com/repos/octocat/Hello-World/commits/762941318ee16e59dabbacb1b4049eec22f0d303",
92885
+ "html_url": "https://github.com/octocat/Hello-World/commit/762941318ee16e59dabbacb1b4049eec22f0d303"
92886
+ }
92887
+ ]
92888
+ },
92889
+ "_links": {
92890
+ "self": "https://api.github.com/repos/octocat/Hello-World/branches/main",
92891
+ "html": "https://github.com/octocat/Hello-World/tree/main"
92892
+ },
92893
+ "protected": false,
92894
+ "protection": {
92895
+ "enabled": false,
92896
+ "required_status_checks": {
92897
+ "enforcement_level": "off",
92898
+ "contexts": [],
92899
+ "checks": []
92900
+ }
92901
+ },
92902
+ "protection_url": "https://api.github.com/repos/octocat/Hello-World/branches/main/protection"
92903
+ }
92904
+ },
92000
92905
  "branch-protection": {
92001
92906
  "value": {
92002
92907
  "url": "https://api.github.com/repos/octocat/Hello-World/branches/master/protection",
@@ -92193,6 +93098,71 @@
92193
93098
  }
92194
93099
  }
92195
93100
  },
93101
+ "branch-protection-update": {
93102
+ "value": {
93103
+ "url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection",
93104
+ "required_status_checks": {
93105
+ "url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection/required_status_checks",
93106
+ "strict": true,
93107
+ "contexts": [
93108
+ "continuous-integration/travis-ci"
93109
+ ],
93110
+ "contexts_url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection/required_status_checks/contexts",
93111
+ "checks": [
93112
+ {
93113
+ "context": "continuous-integration/travis-ci",
93114
+ "app_id": null
93115
+ }
93116
+ ]
93117
+ },
93118
+ "restrictions": {
93119
+ "url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection/restrictions",
93120
+ "users_url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection/restrictions/users",
93121
+ "teams_url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection/restrictions/teams",
93122
+ "apps_url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection/restrictions/apps",
93123
+ "users": [],
93124
+ "teams": [],
93125
+ "apps": []
93126
+ },
93127
+ "required_pull_request_reviews": {
93128
+ "url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection/required_pull_request_reviews",
93129
+ "dismiss_stale_reviews": true,
93130
+ "require_code_owner_reviews": true,
93131
+ "required_approving_review_count": 2,
93132
+ "dismissal_restrictions": {
93133
+ "url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection/dismissal_restrictions",
93134
+ "users_url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection/dismissal_restrictions/users",
93135
+ "teams_url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection/dismissal_restrictions/teams",
93136
+ "users": [],
93137
+ "teams": [],
93138
+ "apps": []
93139
+ }
93140
+ },
93141
+ "required_signatures": {
93142
+ "url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection/required_signatures",
93143
+ "enabled": false
93144
+ },
93145
+ "enforce_admins": {
93146
+ "url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection/enforce_admins",
93147
+ "enabled": true
93148
+ },
93149
+ "required_linear_history": {
93150
+ "enabled": true
93151
+ },
93152
+ "allow_force_pushes": {
93153
+ "enabled": true
93154
+ },
93155
+ "allow_deletions": {
93156
+ "enabled": true
93157
+ },
93158
+ "block_creations": {
93159
+ "enabled": true
93160
+ },
93161
+ "required_conversation_resolution": {
93162
+ "enabled": true
93163
+ }
93164
+ }
93165
+ },
92196
93166
  "protected-branch-admin-enforced-2": {
92197
93167
  "value": {
92198
93168
  "url": "https://api.github.com/repos/octocat/Hello-World/branches/master/protection/enforce_admins",
@@ -93734,6 +94704,7 @@
93734
94704
  "ref": "refs/heads/main",
93735
94705
  "analysis_key": ".github/workflows/codeql-analysis.yml:CodeQL-Build",
93736
94706
  "environment": "",
94707
+ "category": ".github/workflows/codeql-analysis.yml:CodeQL-Build",
93737
94708
  "state": "open",
93738
94709
  "fixed_at": null,
93739
94710
  "commit_sha": "39406e42cb832f683daa691dd652a8dc36ee8930",
@@ -97066,7 +98037,8 @@
97066
98037
  "type": "User",
97067
98038
  "site_admin": false
97068
98039
  },
97069
- "author_association": "COLLABORATOR"
98040
+ "author_association": "COLLABORATOR",
98041
+ "state_reason": "completed"
97070
98042
  }
97071
98043
  ]
97072
98044
  },
@@ -97226,7 +98198,8 @@
97226
98198
  "type": "User",
97227
98199
  "site_admin": false
97228
98200
  },
97229
- "author_association": "COLLABORATOR"
98201
+ "author_association": "COLLABORATOR",
98202
+ "state_reason": "completed"
97230
98203
  }
97231
98204
  },
97232
98205
  "issue-comment-items": {
@@ -97462,7 +98435,8 @@
97462
98435
  "closed_at": null,
97463
98436
  "created_at": "2011-04-22T13:33:48Z",
97464
98437
  "updated_at": "2011-04-22T13:33:48Z",
97465
- "author_association": "COLLABORATOR"
98438
+ "author_association": "COLLABORATOR",
98439
+ "state_reason": "completed"
97466
98440
  }
97467
98441
  }
97468
98442
  ]
@@ -97671,7 +98645,8 @@
97671
98645
  "closed_at": null,
97672
98646
  "created_at": "2011-04-22T13:33:48Z",
97673
98647
  "updated_at": "2011-04-22T13:33:48Z",
97674
- "author_association": "COLLABORATOR"
98648
+ "author_association": "COLLABORATOR",
98649
+ "state_reason": "completed"
97675
98650
  }
97676
98651
  }
97677
98652
  },
@@ -101944,7 +102919,8 @@
101944
102919
  "body": "...",
101945
102920
  "score": 1,
101946
102921
  "locked": true,
101947
- "author_association": "COLLABORATOR"
102922
+ "author_association": "COLLABORATOR",
102923
+ "state_reason": "completed"
101948
102924
  }
101949
102925
  ]
101950
102926
  }