@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": {
@@ -9402,7 +9402,7 @@
9402
9402
  "/organizations/{organization_id}/custom_roles": {
9403
9403
  "get": {
9404
9404
  "summary": "List custom repository roles in an organization",
9405
- "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.4/organizations/managing-peoples-access-to-your-organization-with-roles/managing-custom-repository-roles-for-an-organization)\".",
9405
+ "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.4/organizations/managing-peoples-access-to-your-organization-with-roles/managing-custom-repository-roles-for-an-organization)\".",
9406
9406
  "tags": [
9407
9407
  "orgs"
9408
9408
  ],
@@ -9414,6 +9414,7 @@
9414
9414
  "parameters": [
9415
9415
  {
9416
9416
  "name": "organization_id",
9417
+ "description": "The unique identifier of the organization.",
9417
9418
  "in": "path",
9418
9419
  "required": true,
9419
9420
  "schema": {
@@ -15091,6 +15092,40 @@
15091
15092
  "type": "boolean",
15092
15093
  "description": "Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message.",
15093
15094
  "default": false
15095
+ },
15096
+ "squash_merge_commit_title": {
15097
+ "type": "string",
15098
+ "enum": [
15099
+ "PR_TITLE",
15100
+ "COMMIT_OR_PR_TITLE"
15101
+ ],
15102
+ "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)."
15103
+ },
15104
+ "squash_merge_commit_message": {
15105
+ "type": "string",
15106
+ "enum": [
15107
+ "PR_BODY",
15108
+ "COMMIT_MESSAGES",
15109
+ "BLANK"
15110
+ ],
15111
+ "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."
15112
+ },
15113
+ "merge_commit_title": {
15114
+ "type": "string",
15115
+ "enum": [
15116
+ "PR_TITLE",
15117
+ "MERGE_MESSAGE"
15118
+ ],
15119
+ "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)."
15120
+ },
15121
+ "merge_commit_message": {
15122
+ "type": "string",
15123
+ "enum": [
15124
+ "PR_BODY",
15125
+ "PR_TITLE",
15126
+ "BLANK"
15127
+ ],
15128
+ "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."
15094
15129
  }
15095
15130
  },
15096
15131
  "required": [
@@ -19330,6 +19365,40 @@
19330
19365
  "description": "Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message.",
19331
19366
  "default": false
19332
19367
  },
19368
+ "squash_merge_commit_title": {
19369
+ "type": "string",
19370
+ "enum": [
19371
+ "PR_TITLE",
19372
+ "COMMIT_OR_PR_TITLE"
19373
+ ],
19374
+ "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)."
19375
+ },
19376
+ "squash_merge_commit_message": {
19377
+ "type": "string",
19378
+ "enum": [
19379
+ "PR_BODY",
19380
+ "COMMIT_MESSAGES",
19381
+ "BLANK"
19382
+ ],
19383
+ "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."
19384
+ },
19385
+ "merge_commit_title": {
19386
+ "type": "string",
19387
+ "enum": [
19388
+ "PR_TITLE",
19389
+ "MERGE_MESSAGE"
19390
+ ],
19391
+ "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)."
19392
+ },
19393
+ "merge_commit_message": {
19394
+ "type": "string",
19395
+ "enum": [
19396
+ "PR_BODY",
19397
+ "PR_TITLE",
19398
+ "BLANK"
19399
+ ],
19400
+ "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."
19401
+ },
19333
19402
  "archived": {
19334
19403
  "type": "boolean",
19335
19404
  "description": "`true` to archive this repository. **Note**: You cannot unarchive repositories through the API.",
@@ -20889,9 +20958,12 @@
20889
20958
  "content": {
20890
20959
  "application/json": {
20891
20960
  "schema": {
20892
- "type": "object",
20893
- "properties": {},
20894
- "additionalProperties": false
20961
+ "$ref": "#/components/schemas/empty-object"
20962
+ },
20963
+ "examples": {
20964
+ "default": {
20965
+ "value": null
20966
+ }
20895
20967
  }
20896
20968
  }
20897
20969
  }
@@ -21196,6 +21268,17 @@
21196
21268
  "state",
21197
21269
  "comment"
21198
21270
  ]
21271
+ },
21272
+ "examples": {
21273
+ "default": {
21274
+ "value": {
21275
+ "environment_ids": [
21276
+ 161171787
21277
+ ],
21278
+ "state": "approved",
21279
+ "comment": "Ship it!"
21280
+ }
21281
+ }
21199
21282
  }
21200
21283
  }
21201
21284
  }
@@ -21259,6 +21342,11 @@
21259
21342
  "schema": {
21260
21343
  "type": "object",
21261
21344
  "nullable": true
21345
+ },
21346
+ "examples": {
21347
+ "default": {
21348
+ "value": null
21349
+ }
21262
21350
  }
21263
21351
  }
21264
21352
  }
@@ -21269,9 +21357,12 @@
21269
21357
  "content": {
21270
21358
  "application/json": {
21271
21359
  "schema": {
21272
- "type": "object",
21273
- "properties": {},
21274
- "additionalProperties": false
21360
+ "$ref": "#/components/schemas/empty-object"
21361
+ },
21362
+ "examples": {
21363
+ "default": {
21364
+ "value": null
21365
+ }
21275
21366
  }
21276
21367
  }
21277
21368
  }
@@ -21509,9 +21600,12 @@
21509
21600
  "content": {
21510
21601
  "application/json": {
21511
21602
  "schema": {
21512
- "type": "object",
21513
- "properties": {},
21514
- "additionalProperties": false
21603
+ "$ref": "#/components/schemas/empty-object"
21604
+ },
21605
+ "examples": {
21606
+ "default": {
21607
+ "value": null
21608
+ }
21515
21609
  }
21516
21610
  }
21517
21611
  }
@@ -22379,6 +22473,11 @@
22379
22473
  "application/json": {
22380
22474
  "schema": {
22381
22475
  "$ref": "#/components/schemas/branch-with-protection"
22476
+ },
22477
+ "examples": {
22478
+ "default": {
22479
+ "$ref": "#/components/examples/branch-get"
22480
+ }
22382
22481
  }
22383
22482
  }
22384
22483
  }
@@ -22721,6 +22820,11 @@
22721
22820
  "application/json": {
22722
22821
  "schema": {
22723
22822
  "$ref": "#/components/schemas/protected-branch"
22823
+ },
22824
+ "examples": {
22825
+ "default": {
22826
+ "$ref": "#/components/examples/branch-protection-update"
22827
+ }
22724
22828
  }
22725
22829
  }
22726
22830
  }
@@ -23595,7 +23699,7 @@
23595
23699
  "properties": {
23596
23700
  "contexts": {
23597
23701
  "type": "array",
23598
- "description": "contexts parameter",
23702
+ "description": "The name of the status checks",
23599
23703
  "items": {
23600
23704
  "type": "string"
23601
23705
  }
@@ -23611,6 +23715,17 @@
23611
23715
  }
23612
23716
  }
23613
23717
  ]
23718
+ },
23719
+ "examples": {
23720
+ "default": {
23721
+ "summary": "Example adding status checks to a branch protection rule",
23722
+ "value": {
23723
+ "contexts": [
23724
+ "continuous-integration/travis-ci",
23725
+ "continuous-integration/jenkins"
23726
+ ]
23727
+ }
23728
+ }
23614
23729
  }
23615
23730
  }
23616
23731
  }
@@ -23689,7 +23804,7 @@
23689
23804
  "properties": {
23690
23805
  "contexts": {
23691
23806
  "type": "array",
23692
- "description": "contexts parameter",
23807
+ "description": "The name of the status checks",
23693
23808
  "items": {
23694
23809
  "type": "string"
23695
23810
  }
@@ -23705,6 +23820,16 @@
23705
23820
  }
23706
23821
  }
23707
23822
  ]
23823
+ },
23824
+ "examples": {
23825
+ "default": {
23826
+ "summary": "Example updating status checks for a branch protection rule",
23827
+ "value": {
23828
+ "contexts": [
23829
+ "continuous-integration/travis-ci"
23830
+ ]
23831
+ }
23832
+ }
23708
23833
  }
23709
23834
  }
23710
23835
  }
@@ -23778,7 +23903,7 @@
23778
23903
  "properties": {
23779
23904
  "contexts": {
23780
23905
  "type": "array",
23781
- "description": "contexts parameter",
23906
+ "description": "The name of the status checks",
23782
23907
  "items": {
23783
23908
  "type": "string"
23784
23909
  }
@@ -23794,6 +23919,16 @@
23794
23919
  }
23795
23920
  }
23796
23921
  ]
23922
+ },
23923
+ "examples": {
23924
+ "default": {
23925
+ "summary": "Example removing status checks from a branch protection rule",
23926
+ "value": {
23927
+ "contexts": [
23928
+ "continuous-integration/travis-ci"
23929
+ ]
23930
+ }
23931
+ }
23797
23932
  }
23798
23933
  }
23799
23934
  }
@@ -24319,7 +24454,7 @@
24319
24454
  "properties": {
24320
24455
  "teams": {
24321
24456
  "type": "array",
24322
- "description": "teams parameter",
24457
+ "description": "The slug values for teams",
24323
24458
  "items": {
24324
24459
  "type": "string"
24325
24460
  }
@@ -24335,6 +24470,16 @@
24335
24470
  }
24336
24471
  }
24337
24472
  ]
24473
+ },
24474
+ "examples": {
24475
+ "default": {
24476
+ "summary": "Example adding a team in a branch protection rule",
24477
+ "value": {
24478
+ "teams": [
24479
+ "justice-league"
24480
+ ]
24481
+ }
24482
+ }
24338
24483
  }
24339
24484
  }
24340
24485
  }
@@ -24404,7 +24549,7 @@
24404
24549
  "properties": {
24405
24550
  "teams": {
24406
24551
  "type": "array",
24407
- "description": "teams parameter",
24552
+ "description": "The slug values for teams",
24408
24553
  "items": {
24409
24554
  "type": "string"
24410
24555
  }
@@ -24415,11 +24560,21 @@
24415
24560
  ],
24416
24561
  "example": {
24417
24562
  "teams": [
24418
- "my-team"
24563
+ "justice-league"
24419
24564
  ]
24420
24565
  }
24421
24566
  }
24422
24567
  ]
24568
+ },
24569
+ "examples": {
24570
+ "default": {
24571
+ "summary": "Example replacing a team in a branch protection rule",
24572
+ "value": {
24573
+ "teams": [
24574
+ "justice-league"
24575
+ ]
24576
+ }
24577
+ }
24423
24578
  }
24424
24579
  }
24425
24580
  }
@@ -24488,7 +24643,7 @@
24488
24643
  "properties": {
24489
24644
  "teams": {
24490
24645
  "type": "array",
24491
- "description": "teams parameter",
24646
+ "description": "The slug values for teams",
24492
24647
  "items": {
24493
24648
  "type": "string"
24494
24649
  }
@@ -24504,6 +24659,16 @@
24504
24659
  }
24505
24660
  }
24506
24661
  ]
24662
+ },
24663
+ "examples": {
24664
+ "default": {
24665
+ "summary": "Example removing a team in a branch protection rule",
24666
+ "value": {
24667
+ "teams": [
24668
+ "justice-league"
24669
+ ]
24670
+ }
24671
+ }
24507
24672
  }
24508
24673
  }
24509
24674
  }
@@ -24628,7 +24793,7 @@
24628
24793
  "properties": {
24629
24794
  "users": {
24630
24795
  "type": "array",
24631
- "description": "users parameter",
24796
+ "description": "The username for users",
24632
24797
  "items": {
24633
24798
  "type": "string"
24634
24799
  }
@@ -24644,6 +24809,16 @@
24644
24809
  }
24645
24810
  }
24646
24811
  ]
24812
+ },
24813
+ "examples": {
24814
+ "default": {
24815
+ "summary": "Example adding a user in a branch protection rule",
24816
+ "value": {
24817
+ "users": [
24818
+ "octocat"
24819
+ ]
24820
+ }
24821
+ }
24647
24822
  }
24648
24823
  }
24649
24824
  }
@@ -24713,7 +24888,7 @@
24713
24888
  "properties": {
24714
24889
  "users": {
24715
24890
  "type": "array",
24716
- "description": "users parameter",
24891
+ "description": "The username for users",
24717
24892
  "items": {
24718
24893
  "type": "string"
24719
24894
  }
@@ -24729,6 +24904,16 @@
24729
24904
  }
24730
24905
  }
24731
24906
  ]
24907
+ },
24908
+ "examples": {
24909
+ "default": {
24910
+ "summary": "Example replacing a user in a branch protection rule",
24911
+ "value": {
24912
+ "users": [
24913
+ "octocat"
24914
+ ]
24915
+ }
24916
+ }
24732
24917
  }
24733
24918
  }
24734
24919
  }
@@ -24797,7 +24982,7 @@
24797
24982
  "properties": {
24798
24983
  "users": {
24799
24984
  "type": "array",
24800
- "description": "users parameter",
24985
+ "description": "The username for users",
24801
24986
  "items": {
24802
24987
  "type": "string"
24803
24988
  }
@@ -24813,6 +24998,16 @@
24813
24998
  }
24814
24999
  }
24815
25000
  ]
25001
+ },
25002
+ "examples": {
25003
+ "default": {
25004
+ "summary": "Example removing a user in a branch protection rule",
25005
+ "value": {
25006
+ "users": [
25007
+ "octocat"
25008
+ ]
25009
+ }
25010
+ }
24816
25011
  }
24817
25012
  }
24818
25013
  }
@@ -26657,7 +26852,7 @@
26657
26852
  },
26658
26853
  "delete": {
26659
26854
  "summary": "Delete a code scanning analysis from a repository",
26660
- "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.",
26855
+ "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.",
26661
26856
  "operationId": "code-scanning/delete-analysis",
26662
26857
  "tags": [
26663
26858
  "code-scanning"
@@ -28542,7 +28737,7 @@
28542
28737
  "/repos/{owner}/{repo}/contents/{path}": {
28543
28738
  "get": {
28544
28739
  "summary": "Get repository content",
28545
- "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.4/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.4/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.4/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.4/rest/reference/git#get-a-tree).\n* This API supports files up to 1 megabyte in size.\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.",
28740
+ "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.4/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.4/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.4/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.4/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* This API supports files up to 1 megabyte in size.\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.",
28546
28741
  "tags": [
28547
28742
  "repos"
28548
28743
  ],
@@ -32868,6 +33063,14 @@
32868
33063
  ]
32869
33064
  }
32870
33065
  }
33066
+ },
33067
+ "examples": {
33068
+ "default": {
33069
+ "summary": "Example request body",
33070
+ "value": {
33071
+ "permissions": "write"
33072
+ }
33073
+ }
32871
33074
  }
32872
33075
  }
32873
33076
  }
@@ -33969,6 +34172,12 @@
33969
34172
  "closed"
33970
34173
  ]
33971
34174
  },
34175
+ "state_reason": {
34176
+ "type": "string",
34177
+ "nullable": true,
34178
+ "description": "The reason for the current state",
34179
+ "example": "not_planned"
34180
+ },
33972
34181
  "milestone": {
33973
34182
  "oneOf": [
33974
34183
  {
@@ -49626,6 +49835,40 @@
49626
49835
  "type": "boolean",
49627
49836
  "example": false
49628
49837
  },
49838
+ "squash_merge_commit_title": {
49839
+ "type": "string",
49840
+ "enum": [
49841
+ "PR_TITLE",
49842
+ "COMMIT_OR_PR_TITLE"
49843
+ ],
49844
+ "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)."
49845
+ },
49846
+ "squash_merge_commit_message": {
49847
+ "type": "string",
49848
+ "enum": [
49849
+ "PR_BODY",
49850
+ "COMMIT_MESSAGES",
49851
+ "BLANK"
49852
+ ],
49853
+ "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."
49854
+ },
49855
+ "merge_commit_title": {
49856
+ "type": "string",
49857
+ "enum": [
49858
+ "PR_TITLE",
49859
+ "MERGE_MESSAGE"
49860
+ ],
49861
+ "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)."
49862
+ },
49863
+ "merge_commit_message": {
49864
+ "type": "string",
49865
+ "enum": [
49866
+ "PR_BODY",
49867
+ "PR_TITLE",
49868
+ "BLANK"
49869
+ ],
49870
+ "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."
49871
+ },
49629
49872
  "has_downloads": {
49630
49873
  "description": "Whether downloads are enabled.",
49631
49874
  "default": true,
@@ -53167,14 +53410,6 @@
53167
53410
  "write"
53168
53411
  ]
53169
53412
  },
53170
- "organization_custom_roles": {
53171
- "type": "string",
53172
- "description": "The level of permission to grant the access token for custom roles management.",
53173
- "enum": [
53174
- "read",
53175
- "write"
53176
- ]
53177
- },
53178
53413
  "deployments": {
53179
53414
  "type": "string",
53180
53415
  "description": "The level of permission to grant the access token for deployments and deployment statuses.",
@@ -60719,6 +60954,263 @@
60719
60954
  "parent"
60720
60955
  ]
60721
60956
  },
60957
+ "team-organization": {
60958
+ "title": "Team Organization",
60959
+ "description": "Team Organization",
60960
+ "type": "object",
60961
+ "properties": {
60962
+ "login": {
60963
+ "type": "string",
60964
+ "example": "github"
60965
+ },
60966
+ "id": {
60967
+ "type": "integer",
60968
+ "example": 1
60969
+ },
60970
+ "node_id": {
60971
+ "type": "string",
60972
+ "example": "MDEyOk9yZ2FuaXphdGlvbjE="
60973
+ },
60974
+ "url": {
60975
+ "type": "string",
60976
+ "format": "uri",
60977
+ "example": "https://api.github.com/orgs/github"
60978
+ },
60979
+ "repos_url": {
60980
+ "type": "string",
60981
+ "format": "uri",
60982
+ "example": "https://api.github.com/orgs/github/repos"
60983
+ },
60984
+ "events_url": {
60985
+ "type": "string",
60986
+ "format": "uri",
60987
+ "example": "https://api.github.com/orgs/github/events"
60988
+ },
60989
+ "hooks_url": {
60990
+ "type": "string",
60991
+ "example": "https://api.github.com/orgs/github/hooks"
60992
+ },
60993
+ "issues_url": {
60994
+ "type": "string",
60995
+ "example": "https://api.github.com/orgs/github/issues"
60996
+ },
60997
+ "members_url": {
60998
+ "type": "string",
60999
+ "example": "https://api.github.com/orgs/github/members{/member}"
61000
+ },
61001
+ "public_members_url": {
61002
+ "type": "string",
61003
+ "example": "https://api.github.com/orgs/github/public_members{/member}"
61004
+ },
61005
+ "avatar_url": {
61006
+ "type": "string",
61007
+ "example": "https://github.com/images/error/octocat_happy.gif"
61008
+ },
61009
+ "description": {
61010
+ "type": "string",
61011
+ "example": "A great organization",
61012
+ "nullable": true
61013
+ },
61014
+ "name": {
61015
+ "type": "string",
61016
+ "example": "github"
61017
+ },
61018
+ "company": {
61019
+ "type": "string",
61020
+ "example": "GitHub"
61021
+ },
61022
+ "blog": {
61023
+ "type": "string",
61024
+ "format": "uri",
61025
+ "example": "https://github.com/blog"
61026
+ },
61027
+ "location": {
61028
+ "type": "string",
61029
+ "example": "San Francisco"
61030
+ },
61031
+ "email": {
61032
+ "type": "string",
61033
+ "format": "email",
61034
+ "example": "octocat@github.com"
61035
+ },
61036
+ "twitter_username": {
61037
+ "type": "string",
61038
+ "example": "github",
61039
+ "nullable": true
61040
+ },
61041
+ "is_verified": {
61042
+ "type": "boolean",
61043
+ "example": true
61044
+ },
61045
+ "has_organization_projects": {
61046
+ "type": "boolean",
61047
+ "example": true
61048
+ },
61049
+ "has_repository_projects": {
61050
+ "type": "boolean",
61051
+ "example": true
61052
+ },
61053
+ "public_repos": {
61054
+ "type": "integer",
61055
+ "example": 2
61056
+ },
61057
+ "public_gists": {
61058
+ "type": "integer",
61059
+ "example": 1
61060
+ },
61061
+ "followers": {
61062
+ "type": "integer",
61063
+ "example": 20
61064
+ },
61065
+ "following": {
61066
+ "type": "integer",
61067
+ "example": 0
61068
+ },
61069
+ "html_url": {
61070
+ "type": "string",
61071
+ "format": "uri",
61072
+ "example": "https://github.com/octocat"
61073
+ },
61074
+ "created_at": {
61075
+ "type": "string",
61076
+ "format": "date-time",
61077
+ "example": "2008-01-14T04:33:35Z"
61078
+ },
61079
+ "type": {
61080
+ "type": "string",
61081
+ "example": "Organization"
61082
+ },
61083
+ "total_private_repos": {
61084
+ "type": "integer",
61085
+ "example": 100
61086
+ },
61087
+ "owned_private_repos": {
61088
+ "type": "integer",
61089
+ "example": 100
61090
+ },
61091
+ "private_gists": {
61092
+ "type": "integer",
61093
+ "example": 81,
61094
+ "nullable": true
61095
+ },
61096
+ "disk_usage": {
61097
+ "type": "integer",
61098
+ "example": 10000,
61099
+ "nullable": true
61100
+ },
61101
+ "collaborators": {
61102
+ "type": "integer",
61103
+ "example": 8,
61104
+ "nullable": true
61105
+ },
61106
+ "billing_email": {
61107
+ "type": "string",
61108
+ "format": "email",
61109
+ "example": "org@example.com",
61110
+ "nullable": true
61111
+ },
61112
+ "plan": {
61113
+ "type": "object",
61114
+ "properties": {
61115
+ "name": {
61116
+ "type": "string"
61117
+ },
61118
+ "space": {
61119
+ "type": "integer"
61120
+ },
61121
+ "private_repos": {
61122
+ "type": "integer"
61123
+ },
61124
+ "filled_seats": {
61125
+ "type": "integer"
61126
+ },
61127
+ "seats": {
61128
+ "type": "integer"
61129
+ }
61130
+ },
61131
+ "required": [
61132
+ "name",
61133
+ "space",
61134
+ "private_repos"
61135
+ ]
61136
+ },
61137
+ "default_repository_permission": {
61138
+ "type": "string",
61139
+ "nullable": true
61140
+ },
61141
+ "members_can_create_repositories": {
61142
+ "type": "boolean",
61143
+ "example": true,
61144
+ "nullable": true
61145
+ },
61146
+ "two_factor_requirement_enabled": {
61147
+ "type": "boolean",
61148
+ "example": true,
61149
+ "nullable": true
61150
+ },
61151
+ "members_allowed_repository_creation_type": {
61152
+ "type": "string",
61153
+ "example": "all"
61154
+ },
61155
+ "members_can_create_public_repositories": {
61156
+ "type": "boolean",
61157
+ "example": true
61158
+ },
61159
+ "members_can_create_private_repositories": {
61160
+ "type": "boolean",
61161
+ "example": true
61162
+ },
61163
+ "members_can_create_internal_repositories": {
61164
+ "type": "boolean",
61165
+ "example": true
61166
+ },
61167
+ "members_can_create_pages": {
61168
+ "type": "boolean",
61169
+ "example": true
61170
+ },
61171
+ "members_can_create_public_pages": {
61172
+ "type": "boolean",
61173
+ "example": true
61174
+ },
61175
+ "members_can_create_private_pages": {
61176
+ "type": "boolean",
61177
+ "example": true
61178
+ },
61179
+ "members_can_fork_private_repositories": {
61180
+ "type": "boolean",
61181
+ "example": false,
61182
+ "nullable": true
61183
+ },
61184
+ "updated_at": {
61185
+ "type": "string",
61186
+ "format": "date-time"
61187
+ }
61188
+ },
61189
+ "required": [
61190
+ "login",
61191
+ "url",
61192
+ "id",
61193
+ "node_id",
61194
+ "repos_url",
61195
+ "events_url",
61196
+ "hooks_url",
61197
+ "issues_url",
61198
+ "members_url",
61199
+ "public_members_url",
61200
+ "avatar_url",
61201
+ "description",
61202
+ "html_url",
61203
+ "has_organization_projects",
61204
+ "has_repository_projects",
61205
+ "public_repos",
61206
+ "public_gists",
61207
+ "followers",
61208
+ "following",
61209
+ "type",
61210
+ "created_at",
61211
+ "updated_at"
61212
+ ]
61213
+ },
60722
61214
  "team-full": {
60723
61215
  "title": "Full Team",
60724
61216
  "description": "Groups of organization members that gives permissions on specified repositories.",
@@ -60803,7 +61295,7 @@
60803
61295
  "example": "2017-08-17T12:37:15Z"
60804
61296
  },
60805
61297
  "organization": {
60806
- "$ref": "#/components/schemas/organization-full"
61298
+ "$ref": "#/components/schemas/team-organization"
60807
61299
  },
60808
61300
  "ldap_dn": {
60809
61301
  "description": "Distinguished Name (DN) that team maps to within LDAP environment",
@@ -84426,7 +84918,6 @@
84426
84918
  "node_id": "MDc6TGljZW5zZW1pdA==",
84427
84919
  "html_url": "https://github.com/licenses/mit"
84428
84920
  },
84429
- "language": null,
84430
84921
  "forks_count": 9,
84431
84922
  "forks": 9,
84432
84923
  "stargazers_count": 80,
@@ -85736,6 +86227,109 @@
85736
86227
  }
85737
86228
  ]
85738
86229
  },
86230
+ "branch-get": {
86231
+ "value": {
86232
+ "name": "main",
86233
+ "commit": {
86234
+ "sha": "7fd1a60b01f91b314f59955a4e4d4e80d8edf11d",
86235
+ "node_id": "MDY6Q29tbWl0MTI5NjI2OTo3ZmQxYTYwYjAxZjkxYjMxNGY1OTk1NWE0ZTRkNGU4MGQ4ZWRmMTFk",
86236
+ "commit": {
86237
+ "author": {
86238
+ "name": "The Octocat",
86239
+ "email": "octocat@nowhere.com",
86240
+ "date": "2012-03-06T23:06:50Z"
86241
+ },
86242
+ "committer": {
86243
+ "name": "The Octocat",
86244
+ "email": "octocat@nowhere.com",
86245
+ "date": "2012-03-06T23:06:50Z"
86246
+ },
86247
+ "message": "Merge pull request #6 from Spaceghost/patch-1\n\nNew line at end of file.",
86248
+ "tree": {
86249
+ "sha": "b4eecafa9be2f2006ce1b709d6857b07069b4608",
86250
+ "url": "https://api.github.com/repos/octocat/Hello-World/git/trees/b4eecafa9be2f2006ce1b709d6857b07069b4608"
86251
+ },
86252
+ "url": "https://api.github.com/repos/octocat/Hello-World/git/commits/7fd1a60b01f91b314f59955a4e4d4e80d8edf11d",
86253
+ "comment_count": 77,
86254
+ "verification": {
86255
+ "verified": false,
86256
+ "reason": "unsigned",
86257
+ "signature": null,
86258
+ "payload": null
86259
+ }
86260
+ },
86261
+ "url": "https://api.github.com/repos/octocat/Hello-World/commits/7fd1a60b01f91b314f59955a4e4d4e80d8edf11d",
86262
+ "html_url": "https://github.com/octocat/Hello-World/commit/7fd1a60b01f91b314f59955a4e4d4e80d8edf11d",
86263
+ "comments_url": "https://api.github.com/repos/octocat/Hello-World/commits/7fd1a60b01f91b314f59955a4e4d4e80d8edf11d/comments",
86264
+ "author": {
86265
+ "login": "octocat",
86266
+ "id": 583231,
86267
+ "node_id": "MDQ6VXNlcjU4MzIzMQ==",
86268
+ "avatar_url": "https://avatars.githubusercontent.com/u/583231?v=4",
86269
+ "gravatar_id": "",
86270
+ "url": "https://api.github.com/users/octocat",
86271
+ "html_url": "https://github.com/octocat",
86272
+ "followers_url": "https://api.github.com/users/octocat/followers",
86273
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
86274
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
86275
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
86276
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
86277
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
86278
+ "repos_url": "https://api.github.com/users/octocat/repos",
86279
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
86280
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
86281
+ "type": "User",
86282
+ "site_admin": false
86283
+ },
86284
+ "committer": {
86285
+ "login": "octocat",
86286
+ "id": 583231,
86287
+ "node_id": "MDQ6VXNlcjU4MzIzMQ==",
86288
+ "avatar_url": "https://avatars.githubusercontent.com/u/583231?v=4",
86289
+ "gravatar_id": "",
86290
+ "url": "https://api.github.com/users/octocat",
86291
+ "html_url": "https://github.com/octocat",
86292
+ "followers_url": "https://api.github.com/users/octocat/followers",
86293
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
86294
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
86295
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
86296
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
86297
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
86298
+ "repos_url": "https://api.github.com/users/octocat/repos",
86299
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
86300
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
86301
+ "type": "User",
86302
+ "site_admin": false
86303
+ },
86304
+ "parents": [
86305
+ {
86306
+ "sha": "553c2077f0edc3d5dc5d17262f6aa498e69d6f8e",
86307
+ "url": "https://api.github.com/repos/octocat/Hello-World/commits/553c2077f0edc3d5dc5d17262f6aa498e69d6f8e",
86308
+ "html_url": "https://github.com/octocat/Hello-World/commit/553c2077f0edc3d5dc5d17262f6aa498e69d6f8e"
86309
+ },
86310
+ {
86311
+ "sha": "762941318ee16e59dabbacb1b4049eec22f0d303",
86312
+ "url": "https://api.github.com/repos/octocat/Hello-World/commits/762941318ee16e59dabbacb1b4049eec22f0d303",
86313
+ "html_url": "https://github.com/octocat/Hello-World/commit/762941318ee16e59dabbacb1b4049eec22f0d303"
86314
+ }
86315
+ ]
86316
+ },
86317
+ "_links": {
86318
+ "self": "https://api.github.com/repos/octocat/Hello-World/branches/main",
86319
+ "html": "https://github.com/octocat/Hello-World/tree/main"
86320
+ },
86321
+ "protected": false,
86322
+ "protection": {
86323
+ "enabled": false,
86324
+ "required_status_checks": {
86325
+ "enforcement_level": "off",
86326
+ "contexts": [],
86327
+ "checks": []
86328
+ }
86329
+ },
86330
+ "protection_url": "https://api.github.com/repos/octocat/Hello-World/branches/main/protection"
86331
+ }
86332
+ },
85739
86333
  "branch-protection": {
85740
86334
  "value": {
85741
86335
  "url": "https://api.github.com/repos/octocat/Hello-World/branches/master/protection",
@@ -85932,6 +86526,71 @@
85932
86526
  }
85933
86527
  }
85934
86528
  },
86529
+ "branch-protection-update": {
86530
+ "value": {
86531
+ "url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection",
86532
+ "required_status_checks": {
86533
+ "url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection/required_status_checks",
86534
+ "strict": true,
86535
+ "contexts": [
86536
+ "continuous-integration/travis-ci"
86537
+ ],
86538
+ "contexts_url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection/required_status_checks/contexts",
86539
+ "checks": [
86540
+ {
86541
+ "context": "continuous-integration/travis-ci",
86542
+ "app_id": null
86543
+ }
86544
+ ]
86545
+ },
86546
+ "restrictions": {
86547
+ "url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection/restrictions",
86548
+ "users_url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection/restrictions/users",
86549
+ "teams_url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection/restrictions/teams",
86550
+ "apps_url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection/restrictions/apps",
86551
+ "users": [],
86552
+ "teams": [],
86553
+ "apps": []
86554
+ },
86555
+ "required_pull_request_reviews": {
86556
+ "url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection/required_pull_request_reviews",
86557
+ "dismiss_stale_reviews": true,
86558
+ "require_code_owner_reviews": true,
86559
+ "required_approving_review_count": 2,
86560
+ "dismissal_restrictions": {
86561
+ "url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection/dismissal_restrictions",
86562
+ "users_url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection/dismissal_restrictions/users",
86563
+ "teams_url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection/dismissal_restrictions/teams",
86564
+ "users": [],
86565
+ "teams": [],
86566
+ "apps": []
86567
+ }
86568
+ },
86569
+ "required_signatures": {
86570
+ "url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection/required_signatures",
86571
+ "enabled": false
86572
+ },
86573
+ "enforce_admins": {
86574
+ "url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection/enforce_admins",
86575
+ "enabled": true
86576
+ },
86577
+ "required_linear_history": {
86578
+ "enabled": true
86579
+ },
86580
+ "allow_force_pushes": {
86581
+ "enabled": true
86582
+ },
86583
+ "allow_deletions": {
86584
+ "enabled": true
86585
+ },
86586
+ "block_creations": {
86587
+ "enabled": true
86588
+ },
86589
+ "required_conversation_resolution": {
86590
+ "enabled": true
86591
+ }
86592
+ }
86593
+ },
85935
86594
  "protected-branch-admin-enforced-2": {
85936
86595
  "value": {
85937
86596
  "url": "https://api.github.com/repos/octocat/Hello-World/branches/master/protection/enforce_admins",
@@ -87467,6 +88126,7 @@
87467
88126
  "ref": "refs/heads/main",
87468
88127
  "analysis_key": ".github/workflows/codeql-analysis.yml:CodeQL-Build",
87469
88128
  "environment": "",
88129
+ "category": ".github/workflows/codeql-analysis.yml:CodeQL-Build",
87470
88130
  "state": "open",
87471
88131
  "fixed_at": null,
87472
88132
  "commit_sha": "39406e42cb832f683daa691dd652a8dc36ee8930",
@@ -90727,7 +91387,8 @@
90727
91387
  "type": "User",
90728
91388
  "site_admin": false
90729
91389
  },
90730
- "author_association": "COLLABORATOR"
91390
+ "author_association": "COLLABORATOR",
91391
+ "state_reason": "completed"
90731
91392
  }
90732
91393
  ]
90733
91394
  },
@@ -90887,7 +91548,8 @@
90887
91548
  "type": "User",
90888
91549
  "site_admin": false
90889
91550
  },
90890
- "author_association": "COLLABORATOR"
91551
+ "author_association": "COLLABORATOR",
91552
+ "state_reason": "completed"
90891
91553
  }
90892
91554
  },
90893
91555
  "issue-comment-items": {
@@ -91123,7 +91785,8 @@
91123
91785
  "closed_at": null,
91124
91786
  "created_at": "2011-04-22T13:33:48Z",
91125
91787
  "updated_at": "2011-04-22T13:33:48Z",
91126
- "author_association": "COLLABORATOR"
91788
+ "author_association": "COLLABORATOR",
91789
+ "state_reason": "completed"
91127
91790
  }
91128
91791
  }
91129
91792
  ]
@@ -91332,7 +91995,8 @@
91332
91995
  "closed_at": null,
91333
91996
  "created_at": "2011-04-22T13:33:48Z",
91334
91997
  "updated_at": "2011-04-22T13:33:48Z",
91335
- "author_association": "COLLABORATOR"
91998
+ "author_association": "COLLABORATOR",
91999
+ "state_reason": "completed"
91336
92000
  }
91337
92001
  }
91338
92002
  },
@@ -95556,7 +96220,8 @@
95556
96220
  "body": "...",
95557
96221
  "score": 1,
95558
96222
  "locked": true,
95559
- "author_association": "COLLABORATOR"
96223
+ "author_association": "COLLABORATOR",
96224
+ "state_reason": "completed"
95560
96225
  }
95561
96226
  ]
95562
96227
  }