@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": {
@@ -9594,7 +9594,7 @@
9594
9594
  "/organizations/{organization_id}/custom_roles": {
9595
9595
  "get": {
9596
9596
  "summary": "List custom repository roles in an organization",
9597
- "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.5/organizations/managing-peoples-access-to-your-organization-with-roles/managing-custom-repository-roles-for-an-organization)\".",
9597
+ "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.5/organizations/managing-peoples-access-to-your-organization-with-roles/managing-custom-repository-roles-for-an-organization)\".",
9598
9598
  "tags": [
9599
9599
  "orgs"
9600
9600
  ],
@@ -9606,6 +9606,7 @@
9606
9606
  "parameters": [
9607
9607
  {
9608
9608
  "name": "organization_id",
9609
+ "description": "The unique identifier of the organization.",
9609
9610
  "in": "path",
9610
9611
  "required": true,
9611
9612
  "schema": {
@@ -9695,7 +9696,13 @@
9695
9696
  "category": "orgs",
9696
9697
  "subcategory": null
9697
9698
  },
9698
- "x-octokit": {}
9699
+ "x-octokit": {
9700
+ "diff": {
9701
+ "ghes-3.6": {
9702
+ "type": "changed"
9703
+ }
9704
+ }
9705
+ }
9699
9706
  },
9700
9707
  "patch": {
9701
9708
  "summary": "Update an organization",
@@ -9871,7 +9878,13 @@
9871
9878
  "category": "orgs",
9872
9879
  "subcategory": null
9873
9880
  },
9874
- "x-octokit": {}
9881
+ "x-octokit": {
9882
+ "diff": {
9883
+ "ghes-3.6": {
9884
+ "type": "changed"
9885
+ }
9886
+ }
9887
+ }
9875
9888
  }
9876
9889
  },
9877
9890
  "/orgs/{org}/actions/cache/usage": {
@@ -15658,6 +15671,40 @@
15658
15671
  "type": "boolean",
15659
15672
  "description": "Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message.",
15660
15673
  "default": false
15674
+ },
15675
+ "squash_merge_commit_title": {
15676
+ "type": "string",
15677
+ "enum": [
15678
+ "PR_TITLE",
15679
+ "COMMIT_OR_PR_TITLE"
15680
+ ],
15681
+ "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)."
15682
+ },
15683
+ "squash_merge_commit_message": {
15684
+ "type": "string",
15685
+ "enum": [
15686
+ "PR_BODY",
15687
+ "COMMIT_MESSAGES",
15688
+ "BLANK"
15689
+ ],
15690
+ "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."
15691
+ },
15692
+ "merge_commit_title": {
15693
+ "type": "string",
15694
+ "enum": [
15695
+ "PR_TITLE",
15696
+ "MERGE_MESSAGE"
15697
+ ],
15698
+ "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)."
15699
+ },
15700
+ "merge_commit_message": {
15701
+ "type": "string",
15702
+ "enum": [
15703
+ "PR_BODY",
15704
+ "PR_TITLE",
15705
+ "BLANK"
15706
+ ],
15707
+ "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."
15661
15708
  }
15662
15709
  },
15663
15710
  "required": [
@@ -16032,7 +16079,13 @@
16032
16079
  "category": "teams",
16033
16080
  "subcategory": null
16034
16081
  },
16035
- "x-octokit": {}
16082
+ "x-octokit": {
16083
+ "diff": {
16084
+ "ghes-3.6": {
16085
+ "type": "changed"
16086
+ }
16087
+ }
16088
+ }
16036
16089
  }
16037
16090
  },
16038
16091
  "/orgs/{org}/teams/{team_slug}": {
@@ -16081,7 +16134,13 @@
16081
16134
  "category": "teams",
16082
16135
  "subcategory": null
16083
16136
  },
16084
- "x-octokit": {}
16137
+ "x-octokit": {
16138
+ "diff": {
16139
+ "ghes-3.6": {
16140
+ "type": "changed"
16141
+ }
16142
+ }
16143
+ }
16085
16144
  },
16086
16145
  "patch": {
16087
16146
  "summary": "Update a team",
@@ -16177,7 +16236,13 @@
16177
16236
  "category": "teams",
16178
16237
  "subcategory": null
16179
16238
  },
16180
- "x-octokit": {}
16239
+ "x-octokit": {
16240
+ "diff": {
16241
+ "ghes-3.6": {
16242
+ "type": "changed"
16243
+ }
16244
+ }
16245
+ }
16181
16246
  },
16182
16247
  "delete": {
16183
16248
  "summary": "Delete a team",
@@ -19857,6 +19922,40 @@
19857
19922
  "description": "Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message.",
19858
19923
  "default": false
19859
19924
  },
19925
+ "squash_merge_commit_title": {
19926
+ "type": "string",
19927
+ "enum": [
19928
+ "PR_TITLE",
19929
+ "COMMIT_OR_PR_TITLE"
19930
+ ],
19931
+ "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)."
19932
+ },
19933
+ "squash_merge_commit_message": {
19934
+ "type": "string",
19935
+ "enum": [
19936
+ "PR_BODY",
19937
+ "COMMIT_MESSAGES",
19938
+ "BLANK"
19939
+ ],
19940
+ "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."
19941
+ },
19942
+ "merge_commit_title": {
19943
+ "type": "string",
19944
+ "enum": [
19945
+ "PR_TITLE",
19946
+ "MERGE_MESSAGE"
19947
+ ],
19948
+ "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)."
19949
+ },
19950
+ "merge_commit_message": {
19951
+ "type": "string",
19952
+ "enum": [
19953
+ "PR_BODY",
19954
+ "PR_TITLE",
19955
+ "BLANK"
19956
+ ],
19957
+ "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."
19958
+ },
19860
19959
  "archived": {
19861
19960
  "type": "boolean",
19862
19961
  "description": "`true` to archive this repository. **Note**: You cannot unarchive repositories through the API.",
@@ -20465,6 +20564,11 @@
20465
20564
  "schema": {
20466
20565
  "type": "object",
20467
20566
  "nullable": true
20567
+ },
20568
+ "examples": {
20569
+ "default": {
20570
+ "value": null
20571
+ }
20468
20572
  }
20469
20573
  }
20470
20574
  }
@@ -21930,9 +22034,12 @@
21930
22034
  "content": {
21931
22035
  "application/json": {
21932
22036
  "schema": {
21933
- "type": "object",
21934
- "properties": {},
21935
- "additionalProperties": false
22037
+ "$ref": "#/components/schemas/empty-object"
22038
+ },
22039
+ "examples": {
22040
+ "default": {
22041
+ "value": null
22042
+ }
21936
22043
  }
21937
22044
  }
21938
22045
  }
@@ -22237,6 +22344,17 @@
22237
22344
  "state",
22238
22345
  "comment"
22239
22346
  ]
22347
+ },
22348
+ "examples": {
22349
+ "default": {
22350
+ "value": {
22351
+ "environment_ids": [
22352
+ 161171787
22353
+ ],
22354
+ "state": "approved",
22355
+ "comment": "Ship it!"
22356
+ }
22357
+ }
22240
22358
  }
22241
22359
  }
22242
22360
  }
@@ -22300,6 +22418,11 @@
22300
22418
  "schema": {
22301
22419
  "type": "object",
22302
22420
  "nullable": true
22421
+ },
22422
+ "examples": {
22423
+ "default": {
22424
+ "value": null
22425
+ }
22303
22426
  }
22304
22427
  }
22305
22428
  }
@@ -22310,9 +22433,12 @@
22310
22433
  "content": {
22311
22434
  "application/json": {
22312
22435
  "schema": {
22313
- "type": "object",
22314
- "properties": {},
22315
- "additionalProperties": false
22436
+ "$ref": "#/components/schemas/empty-object"
22437
+ },
22438
+ "examples": {
22439
+ "default": {
22440
+ "value": null
22441
+ }
22316
22442
  }
22317
22443
  }
22318
22444
  }
@@ -22363,6 +22489,11 @@
22363
22489
  "schema": {
22364
22490
  "type": "object",
22365
22491
  "nullable": true
22492
+ },
22493
+ "examples": {
22494
+ "default": {
22495
+ "value": null
22496
+ }
22366
22497
  }
22367
22498
  }
22368
22499
  }
@@ -22622,9 +22753,12 @@
22622
22753
  "content": {
22623
22754
  "application/json": {
22624
22755
  "schema": {
22625
- "type": "object",
22626
- "properties": {},
22627
- "additionalProperties": false
22756
+ "$ref": "#/components/schemas/empty-object"
22757
+ },
22758
+ "examples": {
22759
+ "default": {
22760
+ "value": null
22761
+ }
22628
22762
  }
22629
22763
  }
22630
22764
  }
@@ -23495,6 +23629,11 @@
23495
23629
  "application/json": {
23496
23630
  "schema": {
23497
23631
  "$ref": "#/components/schemas/branch-with-protection"
23632
+ },
23633
+ "examples": {
23634
+ "default": {
23635
+ "$ref": "#/components/examples/branch-get"
23636
+ }
23498
23637
  }
23499
23638
  }
23500
23639
  }
@@ -23837,6 +23976,11 @@
23837
23976
  "application/json": {
23838
23977
  "schema": {
23839
23978
  "$ref": "#/components/schemas/protected-branch"
23979
+ },
23980
+ "examples": {
23981
+ "default": {
23982
+ "$ref": "#/components/examples/branch-protection-update"
23983
+ }
23840
23984
  }
23841
23985
  }
23842
23986
  }
@@ -24711,7 +24855,7 @@
24711
24855
  "properties": {
24712
24856
  "contexts": {
24713
24857
  "type": "array",
24714
- "description": "contexts parameter",
24858
+ "description": "The name of the status checks",
24715
24859
  "items": {
24716
24860
  "type": "string"
24717
24861
  }
@@ -24727,6 +24871,17 @@
24727
24871
  }
24728
24872
  }
24729
24873
  ]
24874
+ },
24875
+ "examples": {
24876
+ "default": {
24877
+ "summary": "Example adding status checks to a branch protection rule",
24878
+ "value": {
24879
+ "contexts": [
24880
+ "continuous-integration/travis-ci",
24881
+ "continuous-integration/jenkins"
24882
+ ]
24883
+ }
24884
+ }
24730
24885
  }
24731
24886
  }
24732
24887
  }
@@ -24805,7 +24960,7 @@
24805
24960
  "properties": {
24806
24961
  "contexts": {
24807
24962
  "type": "array",
24808
- "description": "contexts parameter",
24963
+ "description": "The name of the status checks",
24809
24964
  "items": {
24810
24965
  "type": "string"
24811
24966
  }
@@ -24821,6 +24976,16 @@
24821
24976
  }
24822
24977
  }
24823
24978
  ]
24979
+ },
24980
+ "examples": {
24981
+ "default": {
24982
+ "summary": "Example updating status checks for a branch protection rule",
24983
+ "value": {
24984
+ "contexts": [
24985
+ "continuous-integration/travis-ci"
24986
+ ]
24987
+ }
24988
+ }
24824
24989
  }
24825
24990
  }
24826
24991
  }
@@ -24894,7 +25059,7 @@
24894
25059
  "properties": {
24895
25060
  "contexts": {
24896
25061
  "type": "array",
24897
- "description": "contexts parameter",
25062
+ "description": "The name of the status checks",
24898
25063
  "items": {
24899
25064
  "type": "string"
24900
25065
  }
@@ -24910,6 +25075,16 @@
24910
25075
  }
24911
25076
  }
24912
25077
  ]
25078
+ },
25079
+ "examples": {
25080
+ "default": {
25081
+ "summary": "Example removing status checks from a branch protection rule",
25082
+ "value": {
25083
+ "contexts": [
25084
+ "continuous-integration/travis-ci"
25085
+ ]
25086
+ }
25087
+ }
24913
25088
  }
24914
25089
  }
24915
25090
  }
@@ -25435,7 +25610,7 @@
25435
25610
  "properties": {
25436
25611
  "teams": {
25437
25612
  "type": "array",
25438
- "description": "teams parameter",
25613
+ "description": "The slug values for teams",
25439
25614
  "items": {
25440
25615
  "type": "string"
25441
25616
  }
@@ -25451,6 +25626,16 @@
25451
25626
  }
25452
25627
  }
25453
25628
  ]
25629
+ },
25630
+ "examples": {
25631
+ "default": {
25632
+ "summary": "Example adding a team in a branch protection rule",
25633
+ "value": {
25634
+ "teams": [
25635
+ "justice-league"
25636
+ ]
25637
+ }
25638
+ }
25454
25639
  }
25455
25640
  }
25456
25641
  }
@@ -25520,7 +25705,7 @@
25520
25705
  "properties": {
25521
25706
  "teams": {
25522
25707
  "type": "array",
25523
- "description": "teams parameter",
25708
+ "description": "The slug values for teams",
25524
25709
  "items": {
25525
25710
  "type": "string"
25526
25711
  }
@@ -25531,11 +25716,21 @@
25531
25716
  ],
25532
25717
  "example": {
25533
25718
  "teams": [
25534
- "my-team"
25719
+ "justice-league"
25535
25720
  ]
25536
25721
  }
25537
25722
  }
25538
25723
  ]
25724
+ },
25725
+ "examples": {
25726
+ "default": {
25727
+ "summary": "Example replacing a team in a branch protection rule",
25728
+ "value": {
25729
+ "teams": [
25730
+ "justice-league"
25731
+ ]
25732
+ }
25733
+ }
25539
25734
  }
25540
25735
  }
25541
25736
  }
@@ -25604,7 +25799,7 @@
25604
25799
  "properties": {
25605
25800
  "teams": {
25606
25801
  "type": "array",
25607
- "description": "teams parameter",
25802
+ "description": "The slug values for teams",
25608
25803
  "items": {
25609
25804
  "type": "string"
25610
25805
  }
@@ -25620,6 +25815,16 @@
25620
25815
  }
25621
25816
  }
25622
25817
  ]
25818
+ },
25819
+ "examples": {
25820
+ "default": {
25821
+ "summary": "Example removing a team in a branch protection rule",
25822
+ "value": {
25823
+ "teams": [
25824
+ "justice-league"
25825
+ ]
25826
+ }
25827
+ }
25623
25828
  }
25624
25829
  }
25625
25830
  }
@@ -25744,7 +25949,7 @@
25744
25949
  "properties": {
25745
25950
  "users": {
25746
25951
  "type": "array",
25747
- "description": "users parameter",
25952
+ "description": "The username for users",
25748
25953
  "items": {
25749
25954
  "type": "string"
25750
25955
  }
@@ -25760,6 +25965,16 @@
25760
25965
  }
25761
25966
  }
25762
25967
  ]
25968
+ },
25969
+ "examples": {
25970
+ "default": {
25971
+ "summary": "Example adding a user in a branch protection rule",
25972
+ "value": {
25973
+ "users": [
25974
+ "octocat"
25975
+ ]
25976
+ }
25977
+ }
25763
25978
  }
25764
25979
  }
25765
25980
  }
@@ -25829,7 +26044,7 @@
25829
26044
  "properties": {
25830
26045
  "users": {
25831
26046
  "type": "array",
25832
- "description": "users parameter",
26047
+ "description": "The username for users",
25833
26048
  "items": {
25834
26049
  "type": "string"
25835
26050
  }
@@ -25845,6 +26060,16 @@
25845
26060
  }
25846
26061
  }
25847
26062
  ]
26063
+ },
26064
+ "examples": {
26065
+ "default": {
26066
+ "summary": "Example replacing a user in a branch protection rule",
26067
+ "value": {
26068
+ "users": [
26069
+ "octocat"
26070
+ ]
26071
+ }
26072
+ }
25848
26073
  }
25849
26074
  }
25850
26075
  }
@@ -25913,7 +26138,7 @@
25913
26138
  "properties": {
25914
26139
  "users": {
25915
26140
  "type": "array",
25916
- "description": "users parameter",
26141
+ "description": "The username for users",
25917
26142
  "items": {
25918
26143
  "type": "string"
25919
26144
  }
@@ -25929,6 +26154,16 @@
25929
26154
  }
25930
26155
  }
25931
26156
  ]
26157
+ },
26158
+ "examples": {
26159
+ "default": {
26160
+ "summary": "Example removing a user in a branch protection rule",
26161
+ "value": {
26162
+ "users": [
26163
+ "octocat"
26164
+ ]
26165
+ }
26166
+ }
25932
26167
  }
25933
26168
  }
25934
26169
  }
@@ -27784,7 +28019,7 @@
27784
28019
  },
27785
28020
  "delete": {
27786
28021
  "summary": "Delete a code scanning analysis from a repository",
27787
- "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.",
28022
+ "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.",
27788
28023
  "operationId": "code-scanning/delete-analysis",
27789
28024
  "tags": [
27790
28025
  "code-scanning"
@@ -29722,7 +29957,7 @@
29722
29957
  "/repos/{owner}/{repo}/contents/{path}": {
29723
29958
  "get": {
29724
29959
  "summary": "Get repository content",
29725
- "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.5/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.5/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.5/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.5/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.",
29960
+ "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.5/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.5/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.5/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.5/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.",
29726
29961
  "tags": [
29727
29962
  "repos"
29728
29963
  ],
@@ -34060,6 +34295,14 @@
34060
34295
  ]
34061
34296
  }
34062
34297
  }
34298
+ },
34299
+ "examples": {
34300
+ "default": {
34301
+ "summary": "Example request body",
34302
+ "value": {
34303
+ "permissions": "write"
34304
+ }
34305
+ }
34063
34306
  }
34064
34307
  }
34065
34308
  }
@@ -35191,6 +35434,12 @@
35191
35434
  "closed"
35192
35435
  ]
35193
35436
  },
35437
+ "state_reason": {
35438
+ "type": "string",
35439
+ "nullable": true,
35440
+ "description": "The reason for the current state",
35441
+ "example": "not_planned"
35442
+ },
35194
35443
  "milestone": {
35195
35444
  "oneOf": [
35196
35445
  {
@@ -39239,7 +39488,13 @@
39239
39488
  "category": "pulls",
39240
39489
  "subcategory": null
39241
39490
  },
39242
- "x-octokit": {}
39491
+ "x-octokit": {
39492
+ "diff": {
39493
+ "ghes-3.6": {
39494
+ "type": "changed"
39495
+ }
39496
+ }
39497
+ }
39243
39498
  }
39244
39499
  },
39245
39500
  "/repos/{owner}/{repo}/pulls/comments": {
@@ -39775,7 +40030,13 @@
39775
40030
  "category": "pulls",
39776
40031
  "subcategory": null
39777
40032
  },
39778
- "x-octokit": {}
40033
+ "x-octokit": {
40034
+ "diff": {
40035
+ "ghes-3.6": {
40036
+ "type": "changed"
40037
+ }
40038
+ }
40039
+ }
39779
40040
  },
39780
40041
  "patch": {
39781
40042
  "summary": "Update a pull request",
@@ -39874,7 +40135,13 @@
39874
40135
  "category": "pulls",
39875
40136
  "subcategory": null
39876
40137
  },
39877
- "x-octokit": {}
40138
+ "x-octokit": {
40139
+ "diff": {
40140
+ "ghes-3.6": {
40141
+ "type": "changed"
40142
+ }
40143
+ }
40144
+ }
39878
40145
  }
39879
40146
  },
39880
40147
  "/repos/{owner}/{repo}/pulls/{pull_number}/comments": {
@@ -45483,7 +45750,13 @@
45483
45750
  "category": "search",
45484
45751
  "subcategory": null
45485
45752
  },
45486
- "x-octokit": {}
45753
+ "x-octokit": {
45754
+ "diff": {
45755
+ "ghes-3.6": {
45756
+ "type": "changed"
45757
+ }
45758
+ }
45759
+ }
45487
45760
  }
45488
45761
  },
45489
45762
  "/search/topics": {
@@ -46391,7 +46664,13 @@
46391
46664
  "subcategory": null
46392
46665
  },
46393
46666
  "deprecated": true,
46394
- "x-octokit": {}
46667
+ "x-octokit": {
46668
+ "diff": {
46669
+ "ghes-3.6": {
46670
+ "type": "changed"
46671
+ }
46672
+ }
46673
+ }
46395
46674
  },
46396
46675
  "patch": {
46397
46676
  "summary": "Update a team (Legacy)",
@@ -46514,7 +46793,13 @@
46514
46793
  "subcategory": null
46515
46794
  },
46516
46795
  "deprecated": true,
46517
- "x-octokit": {}
46796
+ "x-octokit": {
46797
+ "diff": {
46798
+ "ghes-3.6": {
46799
+ "type": "changed"
46800
+ }
46801
+ }
46802
+ }
46518
46803
  },
46519
46804
  "delete": {
46520
46805
  "summary": "Delete a team (Legacy)",
@@ -51103,6 +51388,40 @@
51103
51388
  "type": "boolean",
51104
51389
  "example": false
51105
51390
  },
51391
+ "squash_merge_commit_title": {
51392
+ "type": "string",
51393
+ "enum": [
51394
+ "PR_TITLE",
51395
+ "COMMIT_OR_PR_TITLE"
51396
+ ],
51397
+ "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)."
51398
+ },
51399
+ "squash_merge_commit_message": {
51400
+ "type": "string",
51401
+ "enum": [
51402
+ "PR_BODY",
51403
+ "COMMIT_MESSAGES",
51404
+ "BLANK"
51405
+ ],
51406
+ "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."
51407
+ },
51408
+ "merge_commit_title": {
51409
+ "type": "string",
51410
+ "enum": [
51411
+ "PR_TITLE",
51412
+ "MERGE_MESSAGE"
51413
+ ],
51414
+ "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)."
51415
+ },
51416
+ "merge_commit_message": {
51417
+ "type": "string",
51418
+ "enum": [
51419
+ "PR_BODY",
51420
+ "PR_TITLE",
51421
+ "BLANK"
51422
+ ],
51423
+ "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."
51424
+ },
51106
51425
  "has_downloads": {
51107
51426
  "description": "Whether downloads are enabled.",
51108
51427
  "default": true,
@@ -51716,7 +52035,13 @@
51716
52035
  "category": "teams",
51717
52036
  "subcategory": null
51718
52037
  },
51719
- "x-octokit": {}
52038
+ "x-octokit": {
52039
+ "diff": {
52040
+ "ghes-3.6": {
52041
+ "type": "changed"
52042
+ }
52043
+ }
52044
+ }
51720
52045
  }
51721
52046
  },
51722
52047
  "/users": {
@@ -54324,14 +54649,6 @@
54324
54649
  "write"
54325
54650
  ]
54326
54651
  },
54327
- "organization_custom_roles": {
54328
- "type": "string",
54329
- "description": "The level of permission to grant the access token for custom roles management.",
54330
- "enum": [
54331
- "read",
54332
- "write"
54333
- ]
54334
- },
54335
54652
  "deployments": {
54336
54653
  "type": "string",
54337
54654
  "description": "The level of permission to grant the access token for deployments and deployment statuses.",
@@ -62310,6 +62627,263 @@
62310
62627
  "parent"
62311
62628
  ]
62312
62629
  },
62630
+ "team-organization": {
62631
+ "title": "Team Organization",
62632
+ "description": "Team Organization",
62633
+ "type": "object",
62634
+ "properties": {
62635
+ "login": {
62636
+ "type": "string",
62637
+ "example": "github"
62638
+ },
62639
+ "id": {
62640
+ "type": "integer",
62641
+ "example": 1
62642
+ },
62643
+ "node_id": {
62644
+ "type": "string",
62645
+ "example": "MDEyOk9yZ2FuaXphdGlvbjE="
62646
+ },
62647
+ "url": {
62648
+ "type": "string",
62649
+ "format": "uri",
62650
+ "example": "https://api.github.com/orgs/github"
62651
+ },
62652
+ "repos_url": {
62653
+ "type": "string",
62654
+ "format": "uri",
62655
+ "example": "https://api.github.com/orgs/github/repos"
62656
+ },
62657
+ "events_url": {
62658
+ "type": "string",
62659
+ "format": "uri",
62660
+ "example": "https://api.github.com/orgs/github/events"
62661
+ },
62662
+ "hooks_url": {
62663
+ "type": "string",
62664
+ "example": "https://api.github.com/orgs/github/hooks"
62665
+ },
62666
+ "issues_url": {
62667
+ "type": "string",
62668
+ "example": "https://api.github.com/orgs/github/issues"
62669
+ },
62670
+ "members_url": {
62671
+ "type": "string",
62672
+ "example": "https://api.github.com/orgs/github/members{/member}"
62673
+ },
62674
+ "public_members_url": {
62675
+ "type": "string",
62676
+ "example": "https://api.github.com/orgs/github/public_members{/member}"
62677
+ },
62678
+ "avatar_url": {
62679
+ "type": "string",
62680
+ "example": "https://github.com/images/error/octocat_happy.gif"
62681
+ },
62682
+ "description": {
62683
+ "type": "string",
62684
+ "example": "A great organization",
62685
+ "nullable": true
62686
+ },
62687
+ "name": {
62688
+ "type": "string",
62689
+ "example": "github"
62690
+ },
62691
+ "company": {
62692
+ "type": "string",
62693
+ "example": "GitHub"
62694
+ },
62695
+ "blog": {
62696
+ "type": "string",
62697
+ "format": "uri",
62698
+ "example": "https://github.com/blog"
62699
+ },
62700
+ "location": {
62701
+ "type": "string",
62702
+ "example": "San Francisco"
62703
+ },
62704
+ "email": {
62705
+ "type": "string",
62706
+ "format": "email",
62707
+ "example": "octocat@github.com"
62708
+ },
62709
+ "twitter_username": {
62710
+ "type": "string",
62711
+ "example": "github",
62712
+ "nullable": true
62713
+ },
62714
+ "is_verified": {
62715
+ "type": "boolean",
62716
+ "example": true
62717
+ },
62718
+ "has_organization_projects": {
62719
+ "type": "boolean",
62720
+ "example": true
62721
+ },
62722
+ "has_repository_projects": {
62723
+ "type": "boolean",
62724
+ "example": true
62725
+ },
62726
+ "public_repos": {
62727
+ "type": "integer",
62728
+ "example": 2
62729
+ },
62730
+ "public_gists": {
62731
+ "type": "integer",
62732
+ "example": 1
62733
+ },
62734
+ "followers": {
62735
+ "type": "integer",
62736
+ "example": 20
62737
+ },
62738
+ "following": {
62739
+ "type": "integer",
62740
+ "example": 0
62741
+ },
62742
+ "html_url": {
62743
+ "type": "string",
62744
+ "format": "uri",
62745
+ "example": "https://github.com/octocat"
62746
+ },
62747
+ "created_at": {
62748
+ "type": "string",
62749
+ "format": "date-time",
62750
+ "example": "2008-01-14T04:33:35Z"
62751
+ },
62752
+ "type": {
62753
+ "type": "string",
62754
+ "example": "Organization"
62755
+ },
62756
+ "total_private_repos": {
62757
+ "type": "integer",
62758
+ "example": 100
62759
+ },
62760
+ "owned_private_repos": {
62761
+ "type": "integer",
62762
+ "example": 100
62763
+ },
62764
+ "private_gists": {
62765
+ "type": "integer",
62766
+ "example": 81,
62767
+ "nullable": true
62768
+ },
62769
+ "disk_usage": {
62770
+ "type": "integer",
62771
+ "example": 10000,
62772
+ "nullable": true
62773
+ },
62774
+ "collaborators": {
62775
+ "type": "integer",
62776
+ "example": 8,
62777
+ "nullable": true
62778
+ },
62779
+ "billing_email": {
62780
+ "type": "string",
62781
+ "format": "email",
62782
+ "example": "org@example.com",
62783
+ "nullable": true
62784
+ },
62785
+ "plan": {
62786
+ "type": "object",
62787
+ "properties": {
62788
+ "name": {
62789
+ "type": "string"
62790
+ },
62791
+ "space": {
62792
+ "type": "integer"
62793
+ },
62794
+ "private_repos": {
62795
+ "type": "integer"
62796
+ },
62797
+ "filled_seats": {
62798
+ "type": "integer"
62799
+ },
62800
+ "seats": {
62801
+ "type": "integer"
62802
+ }
62803
+ },
62804
+ "required": [
62805
+ "name",
62806
+ "space",
62807
+ "private_repos"
62808
+ ]
62809
+ },
62810
+ "default_repository_permission": {
62811
+ "type": "string",
62812
+ "nullable": true
62813
+ },
62814
+ "members_can_create_repositories": {
62815
+ "type": "boolean",
62816
+ "example": true,
62817
+ "nullable": true
62818
+ },
62819
+ "two_factor_requirement_enabled": {
62820
+ "type": "boolean",
62821
+ "example": true,
62822
+ "nullable": true
62823
+ },
62824
+ "members_allowed_repository_creation_type": {
62825
+ "type": "string",
62826
+ "example": "all"
62827
+ },
62828
+ "members_can_create_public_repositories": {
62829
+ "type": "boolean",
62830
+ "example": true
62831
+ },
62832
+ "members_can_create_private_repositories": {
62833
+ "type": "boolean",
62834
+ "example": true
62835
+ },
62836
+ "members_can_create_internal_repositories": {
62837
+ "type": "boolean",
62838
+ "example": true
62839
+ },
62840
+ "members_can_create_pages": {
62841
+ "type": "boolean",
62842
+ "example": true
62843
+ },
62844
+ "members_can_create_public_pages": {
62845
+ "type": "boolean",
62846
+ "example": true
62847
+ },
62848
+ "members_can_create_private_pages": {
62849
+ "type": "boolean",
62850
+ "example": true
62851
+ },
62852
+ "members_can_fork_private_repositories": {
62853
+ "type": "boolean",
62854
+ "example": false,
62855
+ "nullable": true
62856
+ },
62857
+ "updated_at": {
62858
+ "type": "string",
62859
+ "format": "date-time"
62860
+ }
62861
+ },
62862
+ "required": [
62863
+ "login",
62864
+ "url",
62865
+ "id",
62866
+ "node_id",
62867
+ "repos_url",
62868
+ "events_url",
62869
+ "hooks_url",
62870
+ "issues_url",
62871
+ "members_url",
62872
+ "public_members_url",
62873
+ "avatar_url",
62874
+ "description",
62875
+ "html_url",
62876
+ "has_organization_projects",
62877
+ "has_repository_projects",
62878
+ "public_repos",
62879
+ "public_gists",
62880
+ "followers",
62881
+ "following",
62882
+ "type",
62883
+ "created_at",
62884
+ "updated_at"
62885
+ ]
62886
+ },
62313
62887
  "team-full": {
62314
62888
  "title": "Full Team",
62315
62889
  "description": "Groups of organization members that gives permissions on specified repositories.",
@@ -62394,7 +62968,7 @@
62394
62968
  "example": "2017-08-17T12:37:15Z"
62395
62969
  },
62396
62970
  "organization": {
62397
- "$ref": "#/components/schemas/organization-full"
62971
+ "$ref": "#/components/schemas/team-organization"
62398
62972
  },
62399
62973
  "ldap_dn": {
62400
62974
  "description": "Distinguished Name (DN) that team maps to within LDAP environment",
@@ -86290,7 +86864,6 @@
86290
86864
  "node_id": "MDc6TGljZW5zZW1pdA==",
86291
86865
  "html_url": "https://github.com/licenses/mit"
86292
86866
  },
86293
- "language": null,
86294
86867
  "forks_count": 9,
86295
86868
  "forks": 9,
86296
86869
  "stargazers_count": 80,
@@ -87702,6 +88275,109 @@
87702
88275
  }
87703
88276
  ]
87704
88277
  },
88278
+ "branch-get": {
88279
+ "value": {
88280
+ "name": "main",
88281
+ "commit": {
88282
+ "sha": "7fd1a60b01f91b314f59955a4e4d4e80d8edf11d",
88283
+ "node_id": "MDY6Q29tbWl0MTI5NjI2OTo3ZmQxYTYwYjAxZjkxYjMxNGY1OTk1NWE0ZTRkNGU4MGQ4ZWRmMTFk",
88284
+ "commit": {
88285
+ "author": {
88286
+ "name": "The Octocat",
88287
+ "email": "octocat@nowhere.com",
88288
+ "date": "2012-03-06T23:06:50Z"
88289
+ },
88290
+ "committer": {
88291
+ "name": "The Octocat",
88292
+ "email": "octocat@nowhere.com",
88293
+ "date": "2012-03-06T23:06:50Z"
88294
+ },
88295
+ "message": "Merge pull request #6 from Spaceghost/patch-1\n\nNew line at end of file.",
88296
+ "tree": {
88297
+ "sha": "b4eecafa9be2f2006ce1b709d6857b07069b4608",
88298
+ "url": "https://api.github.com/repos/octocat/Hello-World/git/trees/b4eecafa9be2f2006ce1b709d6857b07069b4608"
88299
+ },
88300
+ "url": "https://api.github.com/repos/octocat/Hello-World/git/commits/7fd1a60b01f91b314f59955a4e4d4e80d8edf11d",
88301
+ "comment_count": 77,
88302
+ "verification": {
88303
+ "verified": false,
88304
+ "reason": "unsigned",
88305
+ "signature": null,
88306
+ "payload": null
88307
+ }
88308
+ },
88309
+ "url": "https://api.github.com/repos/octocat/Hello-World/commits/7fd1a60b01f91b314f59955a4e4d4e80d8edf11d",
88310
+ "html_url": "https://github.com/octocat/Hello-World/commit/7fd1a60b01f91b314f59955a4e4d4e80d8edf11d",
88311
+ "comments_url": "https://api.github.com/repos/octocat/Hello-World/commits/7fd1a60b01f91b314f59955a4e4d4e80d8edf11d/comments",
88312
+ "author": {
88313
+ "login": "octocat",
88314
+ "id": 583231,
88315
+ "node_id": "MDQ6VXNlcjU4MzIzMQ==",
88316
+ "avatar_url": "https://avatars.githubusercontent.com/u/583231?v=4",
88317
+ "gravatar_id": "",
88318
+ "url": "https://api.github.com/users/octocat",
88319
+ "html_url": "https://github.com/octocat",
88320
+ "followers_url": "https://api.github.com/users/octocat/followers",
88321
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
88322
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
88323
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
88324
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
88325
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
88326
+ "repos_url": "https://api.github.com/users/octocat/repos",
88327
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
88328
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
88329
+ "type": "User",
88330
+ "site_admin": false
88331
+ },
88332
+ "committer": {
88333
+ "login": "octocat",
88334
+ "id": 583231,
88335
+ "node_id": "MDQ6VXNlcjU4MzIzMQ==",
88336
+ "avatar_url": "https://avatars.githubusercontent.com/u/583231?v=4",
88337
+ "gravatar_id": "",
88338
+ "url": "https://api.github.com/users/octocat",
88339
+ "html_url": "https://github.com/octocat",
88340
+ "followers_url": "https://api.github.com/users/octocat/followers",
88341
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
88342
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
88343
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
88344
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
88345
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
88346
+ "repos_url": "https://api.github.com/users/octocat/repos",
88347
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
88348
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
88349
+ "type": "User",
88350
+ "site_admin": false
88351
+ },
88352
+ "parents": [
88353
+ {
88354
+ "sha": "553c2077f0edc3d5dc5d17262f6aa498e69d6f8e",
88355
+ "url": "https://api.github.com/repos/octocat/Hello-World/commits/553c2077f0edc3d5dc5d17262f6aa498e69d6f8e",
88356
+ "html_url": "https://github.com/octocat/Hello-World/commit/553c2077f0edc3d5dc5d17262f6aa498e69d6f8e"
88357
+ },
88358
+ {
88359
+ "sha": "762941318ee16e59dabbacb1b4049eec22f0d303",
88360
+ "url": "https://api.github.com/repos/octocat/Hello-World/commits/762941318ee16e59dabbacb1b4049eec22f0d303",
88361
+ "html_url": "https://github.com/octocat/Hello-World/commit/762941318ee16e59dabbacb1b4049eec22f0d303"
88362
+ }
88363
+ ]
88364
+ },
88365
+ "_links": {
88366
+ "self": "https://api.github.com/repos/octocat/Hello-World/branches/main",
88367
+ "html": "https://github.com/octocat/Hello-World/tree/main"
88368
+ },
88369
+ "protected": false,
88370
+ "protection": {
88371
+ "enabled": false,
88372
+ "required_status_checks": {
88373
+ "enforcement_level": "off",
88374
+ "contexts": [],
88375
+ "checks": []
88376
+ }
88377
+ },
88378
+ "protection_url": "https://api.github.com/repos/octocat/Hello-World/branches/main/protection"
88379
+ }
88380
+ },
87705
88381
  "branch-protection": {
87706
88382
  "value": {
87707
88383
  "url": "https://api.github.com/repos/octocat/Hello-World/branches/master/protection",
@@ -87898,6 +88574,71 @@
87898
88574
  }
87899
88575
  }
87900
88576
  },
88577
+ "branch-protection-update": {
88578
+ "value": {
88579
+ "url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection",
88580
+ "required_status_checks": {
88581
+ "url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection/required_status_checks",
88582
+ "strict": true,
88583
+ "contexts": [
88584
+ "continuous-integration/travis-ci"
88585
+ ],
88586
+ "contexts_url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection/required_status_checks/contexts",
88587
+ "checks": [
88588
+ {
88589
+ "context": "continuous-integration/travis-ci",
88590
+ "app_id": null
88591
+ }
88592
+ ]
88593
+ },
88594
+ "restrictions": {
88595
+ "url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection/restrictions",
88596
+ "users_url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection/restrictions/users",
88597
+ "teams_url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection/restrictions/teams",
88598
+ "apps_url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection/restrictions/apps",
88599
+ "users": [],
88600
+ "teams": [],
88601
+ "apps": []
88602
+ },
88603
+ "required_pull_request_reviews": {
88604
+ "url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection/required_pull_request_reviews",
88605
+ "dismiss_stale_reviews": true,
88606
+ "require_code_owner_reviews": true,
88607
+ "required_approving_review_count": 2,
88608
+ "dismissal_restrictions": {
88609
+ "url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection/dismissal_restrictions",
88610
+ "users_url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection/dismissal_restrictions/users",
88611
+ "teams_url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection/dismissal_restrictions/teams",
88612
+ "users": [],
88613
+ "teams": [],
88614
+ "apps": []
88615
+ }
88616
+ },
88617
+ "required_signatures": {
88618
+ "url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection/required_signatures",
88619
+ "enabled": false
88620
+ },
88621
+ "enforce_admins": {
88622
+ "url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection/enforce_admins",
88623
+ "enabled": true
88624
+ },
88625
+ "required_linear_history": {
88626
+ "enabled": true
88627
+ },
88628
+ "allow_force_pushes": {
88629
+ "enabled": true
88630
+ },
88631
+ "allow_deletions": {
88632
+ "enabled": true
88633
+ },
88634
+ "block_creations": {
88635
+ "enabled": true
88636
+ },
88637
+ "required_conversation_resolution": {
88638
+ "enabled": true
88639
+ }
88640
+ }
88641
+ },
87901
88642
  "protected-branch-admin-enforced-2": {
87902
88643
  "value": {
87903
88644
  "url": "https://api.github.com/repos/octocat/Hello-World/branches/master/protection/enforce_admins",
@@ -89433,6 +90174,7 @@
89433
90174
  "ref": "refs/heads/main",
89434
90175
  "analysis_key": ".github/workflows/codeql-analysis.yml:CodeQL-Build",
89435
90176
  "environment": "",
90177
+ "category": ".github/workflows/codeql-analysis.yml:CodeQL-Build",
89436
90178
  "state": "open",
89437
90179
  "fixed_at": null,
89438
90180
  "commit_sha": "39406e42cb832f683daa691dd652a8dc36ee8930",
@@ -92721,7 +93463,8 @@
92721
93463
  "type": "User",
92722
93464
  "site_admin": false
92723
93465
  },
92724
- "author_association": "COLLABORATOR"
93466
+ "author_association": "COLLABORATOR",
93467
+ "state_reason": "completed"
92725
93468
  }
92726
93469
  ]
92727
93470
  },
@@ -92881,7 +93624,8 @@
92881
93624
  "type": "User",
92882
93625
  "site_admin": false
92883
93626
  },
92884
- "author_association": "COLLABORATOR"
93627
+ "author_association": "COLLABORATOR",
93628
+ "state_reason": "completed"
92885
93629
  }
92886
93630
  },
92887
93631
  "issue-comment-items": {
@@ -93117,7 +93861,8 @@
93117
93861
  "closed_at": null,
93118
93862
  "created_at": "2011-04-22T13:33:48Z",
93119
93863
  "updated_at": "2011-04-22T13:33:48Z",
93120
- "author_association": "COLLABORATOR"
93864
+ "author_association": "COLLABORATOR",
93865
+ "state_reason": "completed"
93121
93866
  }
93122
93867
  }
93123
93868
  ]
@@ -93326,7 +94071,8 @@
93326
94071
  "closed_at": null,
93327
94072
  "created_at": "2011-04-22T13:33:48Z",
93328
94073
  "updated_at": "2011-04-22T13:33:48Z",
93329
- "author_association": "COLLABORATOR"
94074
+ "author_association": "COLLABORATOR",
94075
+ "state_reason": "completed"
93330
94076
  }
93331
94077
  }
93332
94078
  },
@@ -97565,7 +98311,8 @@
97565
98311
  "body": "...",
97566
98312
  "score": 1,
97567
98313
  "locked": true,
97568
- "author_association": "COLLABORATOR"
98314
+ "author_association": "COLLABORATOR",
98315
+ "state_reason": "completed"
97569
98316
  }
97570
98317
  ]
97571
98318
  }