@octokit/openapi 7.5.0 → 7.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/generated/api.github.com.deref.json +2249 -268
- package/generated/api.github.com.json +1222 -129
- package/generated/ghes-3.2-diff-to-api.github.com.deref.json +1 -1
- package/generated/ghes-3.2-diff-to-api.github.com.json +1 -1
- package/generated/ghes-3.2-diff-to-ghes-3.3.deref.json +386 -28
- package/generated/ghes-3.2-diff-to-ghes-3.3.json +43 -17
- package/generated/ghes-3.2.deref.json +778 -256
- package/generated/ghes-3.2.json +588 -40
- package/generated/ghes-3.3-anicca-diff-to-ghes-3.4.deref.json +0 -16
- package/generated/ghes-3.3-diff-to-ghes-3.4.deref.json +205 -225
- package/generated/ghes-3.3-diff-to-ghes-3.4.json +445 -12
- package/generated/ghes-3.3.deref.json +785 -257
- package/generated/ghes-3.3.json +595 -41
- package/generated/ghes-3.4-diff-to-ghes-3.5.deref.json +153 -1
- package/generated/ghes-3.4-diff-to-ghes-3.5.json +13 -1
- package/generated/ghes-3.4.deref.json +816 -243
- package/generated/ghes-3.4.json +603 -43
- package/generated/ghes-3.5-diff-to-api.github.com.deref.json +1 -1
- package/generated/ghes-3.5-diff-to-api.github.com.json +1 -1
- package/generated/ghes-3.5-diff-to-ghes-3.6.deref.json +462 -42
- package/generated/ghes-3.5-diff-to-ghes-3.6.json +304 -18
- package/generated/ghes-3.5.deref.json +829 -243
- package/generated/ghes-3.5.json +603 -43
- package/generated/ghes-3.6-anicca-diff-to-api.github.com.deref.json +519 -89
- package/generated/ghes-3.6-diff-to-api.github.com.deref.json +18071 -6614
- package/generated/ghes-3.6-diff-to-api.github.com.json +6665 -4290
- package/generated/ghes-3.6.deref.json +1048 -256
- package/generated/ghes-3.6.json +826 -56
- package/generated/github.ae-anicca-diff-to-api.github.com.deref.json +347 -32
- package/generated/github.ae-diff-to-api.github.com.deref.json +11634 -3854
- package/generated/github.ae-diff-to-api.github.com.json +1185 -40
- package/generated/github.ae.deref.json +1087 -178
- package/generated/github.ae.json +865 -50
- package/package.json +1 -1
package/generated/ghes-3.4.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"openapi": "3.0.3",
|
|
3
3
|
"info": {
|
|
4
|
-
"version": "7.
|
|
4
|
+
"version": "7.8.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
|
],
|
|
@@ -13556,17 +13556,6 @@
|
|
|
13556
13556
|
}
|
|
13557
13557
|
}
|
|
13558
13558
|
},
|
|
13559
|
-
"302": {
|
|
13560
|
-
"description": "Response if requester is not an organization member",
|
|
13561
|
-
"headers": {
|
|
13562
|
-
"Location": {
|
|
13563
|
-
"example": "https://api.github.com/orgs/github/public_members",
|
|
13564
|
-
"schema": {
|
|
13565
|
-
"type": "string"
|
|
13566
|
-
}
|
|
13567
|
-
}
|
|
13568
|
-
}
|
|
13569
|
-
},
|
|
13570
13559
|
"422": {
|
|
13571
13560
|
"$ref": "#/components/responses/validation_failed"
|
|
13572
13561
|
}
|
|
@@ -22226,6 +22215,11 @@
|
|
|
22226
22215
|
"url_template": {
|
|
22227
22216
|
"type": "string",
|
|
22228
22217
|
"description": "The URL must contain `<num>` for the reference number."
|
|
22218
|
+
},
|
|
22219
|
+
"is_alphanumeric": {
|
|
22220
|
+
"type": "boolean",
|
|
22221
|
+
"default": "true",
|
|
22222
|
+
"description": "Whether this autolink reference matches alphanumeric characters. If true, the `<num>` parameter of the `url_template` matches alphanumeric characters `A-Z` (case insensitive), `0-9`, and `-`. If false, this autolink reference only matches numeric characters."
|
|
22229
22223
|
}
|
|
22230
22224
|
},
|
|
22231
22225
|
"required": [
|
|
@@ -22237,7 +22231,8 @@
|
|
|
22237
22231
|
"default": {
|
|
22238
22232
|
"value": {
|
|
22239
22233
|
"key_prefix": "TICKET-",
|
|
22240
|
-
"url_template": "https://example.com/TICKET?query=<num>"
|
|
22234
|
+
"url_template": "https://example.com/TICKET?query=<num>",
|
|
22235
|
+
"is_alphanumeric": true
|
|
22241
22236
|
}
|
|
22242
22237
|
}
|
|
22243
22238
|
}
|
|
@@ -22473,6 +22468,11 @@
|
|
|
22473
22468
|
"application/json": {
|
|
22474
22469
|
"schema": {
|
|
22475
22470
|
"$ref": "#/components/schemas/branch-with-protection"
|
|
22471
|
+
},
|
|
22472
|
+
"examples": {
|
|
22473
|
+
"default": {
|
|
22474
|
+
"$ref": "#/components/examples/branch-get"
|
|
22475
|
+
}
|
|
22476
22476
|
}
|
|
22477
22477
|
}
|
|
22478
22478
|
}
|
|
@@ -22815,6 +22815,11 @@
|
|
|
22815
22815
|
"application/json": {
|
|
22816
22816
|
"schema": {
|
|
22817
22817
|
"$ref": "#/components/schemas/protected-branch"
|
|
22818
|
+
},
|
|
22819
|
+
"examples": {
|
|
22820
|
+
"default": {
|
|
22821
|
+
"$ref": "#/components/examples/branch-protection-update"
|
|
22822
|
+
}
|
|
22818
22823
|
}
|
|
22819
22824
|
}
|
|
22820
22825
|
}
|
|
@@ -23689,7 +23694,7 @@
|
|
|
23689
23694
|
"properties": {
|
|
23690
23695
|
"contexts": {
|
|
23691
23696
|
"type": "array",
|
|
23692
|
-
"description": "
|
|
23697
|
+
"description": "The name of the status checks",
|
|
23693
23698
|
"items": {
|
|
23694
23699
|
"type": "string"
|
|
23695
23700
|
}
|
|
@@ -23705,6 +23710,17 @@
|
|
|
23705
23710
|
}
|
|
23706
23711
|
}
|
|
23707
23712
|
]
|
|
23713
|
+
},
|
|
23714
|
+
"examples": {
|
|
23715
|
+
"default": {
|
|
23716
|
+
"summary": "Example adding status checks to a branch protection rule",
|
|
23717
|
+
"value": {
|
|
23718
|
+
"contexts": [
|
|
23719
|
+
"continuous-integration/travis-ci",
|
|
23720
|
+
"continuous-integration/jenkins"
|
|
23721
|
+
]
|
|
23722
|
+
}
|
|
23723
|
+
}
|
|
23708
23724
|
}
|
|
23709
23725
|
}
|
|
23710
23726
|
}
|
|
@@ -23783,7 +23799,7 @@
|
|
|
23783
23799
|
"properties": {
|
|
23784
23800
|
"contexts": {
|
|
23785
23801
|
"type": "array",
|
|
23786
|
-
"description": "
|
|
23802
|
+
"description": "The name of the status checks",
|
|
23787
23803
|
"items": {
|
|
23788
23804
|
"type": "string"
|
|
23789
23805
|
}
|
|
@@ -23799,6 +23815,16 @@
|
|
|
23799
23815
|
}
|
|
23800
23816
|
}
|
|
23801
23817
|
]
|
|
23818
|
+
},
|
|
23819
|
+
"examples": {
|
|
23820
|
+
"default": {
|
|
23821
|
+
"summary": "Example updating status checks for a branch protection rule",
|
|
23822
|
+
"value": {
|
|
23823
|
+
"contexts": [
|
|
23824
|
+
"continuous-integration/travis-ci"
|
|
23825
|
+
]
|
|
23826
|
+
}
|
|
23827
|
+
}
|
|
23802
23828
|
}
|
|
23803
23829
|
}
|
|
23804
23830
|
}
|
|
@@ -23872,7 +23898,7 @@
|
|
|
23872
23898
|
"properties": {
|
|
23873
23899
|
"contexts": {
|
|
23874
23900
|
"type": "array",
|
|
23875
|
-
"description": "
|
|
23901
|
+
"description": "The name of the status checks",
|
|
23876
23902
|
"items": {
|
|
23877
23903
|
"type": "string"
|
|
23878
23904
|
}
|
|
@@ -23888,6 +23914,16 @@
|
|
|
23888
23914
|
}
|
|
23889
23915
|
}
|
|
23890
23916
|
]
|
|
23917
|
+
},
|
|
23918
|
+
"examples": {
|
|
23919
|
+
"default": {
|
|
23920
|
+
"summary": "Example removing status checks from a branch protection rule",
|
|
23921
|
+
"value": {
|
|
23922
|
+
"contexts": [
|
|
23923
|
+
"continuous-integration/travis-ci"
|
|
23924
|
+
]
|
|
23925
|
+
}
|
|
23926
|
+
}
|
|
23891
23927
|
}
|
|
23892
23928
|
}
|
|
23893
23929
|
}
|
|
@@ -24413,7 +24449,7 @@
|
|
|
24413
24449
|
"properties": {
|
|
24414
24450
|
"teams": {
|
|
24415
24451
|
"type": "array",
|
|
24416
|
-
"description": "teams
|
|
24452
|
+
"description": "The slug values for teams",
|
|
24417
24453
|
"items": {
|
|
24418
24454
|
"type": "string"
|
|
24419
24455
|
}
|
|
@@ -24429,6 +24465,16 @@
|
|
|
24429
24465
|
}
|
|
24430
24466
|
}
|
|
24431
24467
|
]
|
|
24468
|
+
},
|
|
24469
|
+
"examples": {
|
|
24470
|
+
"default": {
|
|
24471
|
+
"summary": "Example adding a team in a branch protection rule",
|
|
24472
|
+
"value": {
|
|
24473
|
+
"teams": [
|
|
24474
|
+
"justice-league"
|
|
24475
|
+
]
|
|
24476
|
+
}
|
|
24477
|
+
}
|
|
24432
24478
|
}
|
|
24433
24479
|
}
|
|
24434
24480
|
}
|
|
@@ -24498,7 +24544,7 @@
|
|
|
24498
24544
|
"properties": {
|
|
24499
24545
|
"teams": {
|
|
24500
24546
|
"type": "array",
|
|
24501
|
-
"description": "teams
|
|
24547
|
+
"description": "The slug values for teams",
|
|
24502
24548
|
"items": {
|
|
24503
24549
|
"type": "string"
|
|
24504
24550
|
}
|
|
@@ -24509,11 +24555,21 @@
|
|
|
24509
24555
|
],
|
|
24510
24556
|
"example": {
|
|
24511
24557
|
"teams": [
|
|
24512
|
-
"
|
|
24558
|
+
"justice-league"
|
|
24513
24559
|
]
|
|
24514
24560
|
}
|
|
24515
24561
|
}
|
|
24516
24562
|
]
|
|
24563
|
+
},
|
|
24564
|
+
"examples": {
|
|
24565
|
+
"default": {
|
|
24566
|
+
"summary": "Example replacing a team in a branch protection rule",
|
|
24567
|
+
"value": {
|
|
24568
|
+
"teams": [
|
|
24569
|
+
"justice-league"
|
|
24570
|
+
]
|
|
24571
|
+
}
|
|
24572
|
+
}
|
|
24517
24573
|
}
|
|
24518
24574
|
}
|
|
24519
24575
|
}
|
|
@@ -24582,7 +24638,7 @@
|
|
|
24582
24638
|
"properties": {
|
|
24583
24639
|
"teams": {
|
|
24584
24640
|
"type": "array",
|
|
24585
|
-
"description": "teams
|
|
24641
|
+
"description": "The slug values for teams",
|
|
24586
24642
|
"items": {
|
|
24587
24643
|
"type": "string"
|
|
24588
24644
|
}
|
|
@@ -24598,6 +24654,16 @@
|
|
|
24598
24654
|
}
|
|
24599
24655
|
}
|
|
24600
24656
|
]
|
|
24657
|
+
},
|
|
24658
|
+
"examples": {
|
|
24659
|
+
"default": {
|
|
24660
|
+
"summary": "Example removing a team in a branch protection rule",
|
|
24661
|
+
"value": {
|
|
24662
|
+
"teams": [
|
|
24663
|
+
"justice-league"
|
|
24664
|
+
]
|
|
24665
|
+
}
|
|
24666
|
+
}
|
|
24601
24667
|
}
|
|
24602
24668
|
}
|
|
24603
24669
|
}
|
|
@@ -24722,7 +24788,7 @@
|
|
|
24722
24788
|
"properties": {
|
|
24723
24789
|
"users": {
|
|
24724
24790
|
"type": "array",
|
|
24725
|
-
"description": "users
|
|
24791
|
+
"description": "The username for users",
|
|
24726
24792
|
"items": {
|
|
24727
24793
|
"type": "string"
|
|
24728
24794
|
}
|
|
@@ -24738,6 +24804,16 @@
|
|
|
24738
24804
|
}
|
|
24739
24805
|
}
|
|
24740
24806
|
]
|
|
24807
|
+
},
|
|
24808
|
+
"examples": {
|
|
24809
|
+
"default": {
|
|
24810
|
+
"summary": "Example adding a user in a branch protection rule",
|
|
24811
|
+
"value": {
|
|
24812
|
+
"users": [
|
|
24813
|
+
"octocat"
|
|
24814
|
+
]
|
|
24815
|
+
}
|
|
24816
|
+
}
|
|
24741
24817
|
}
|
|
24742
24818
|
}
|
|
24743
24819
|
}
|
|
@@ -24807,7 +24883,7 @@
|
|
|
24807
24883
|
"properties": {
|
|
24808
24884
|
"users": {
|
|
24809
24885
|
"type": "array",
|
|
24810
|
-
"description": "users
|
|
24886
|
+
"description": "The username for users",
|
|
24811
24887
|
"items": {
|
|
24812
24888
|
"type": "string"
|
|
24813
24889
|
}
|
|
@@ -24823,6 +24899,16 @@
|
|
|
24823
24899
|
}
|
|
24824
24900
|
}
|
|
24825
24901
|
]
|
|
24902
|
+
},
|
|
24903
|
+
"examples": {
|
|
24904
|
+
"default": {
|
|
24905
|
+
"summary": "Example replacing a user in a branch protection rule",
|
|
24906
|
+
"value": {
|
|
24907
|
+
"users": [
|
|
24908
|
+
"octocat"
|
|
24909
|
+
]
|
|
24910
|
+
}
|
|
24911
|
+
}
|
|
24826
24912
|
}
|
|
24827
24913
|
}
|
|
24828
24914
|
}
|
|
@@ -24891,7 +24977,7 @@
|
|
|
24891
24977
|
"properties": {
|
|
24892
24978
|
"users": {
|
|
24893
24979
|
"type": "array",
|
|
24894
|
-
"description": "users
|
|
24980
|
+
"description": "The username for users",
|
|
24895
24981
|
"items": {
|
|
24896
24982
|
"type": "string"
|
|
24897
24983
|
}
|
|
@@ -24907,6 +24993,16 @@
|
|
|
24907
24993
|
}
|
|
24908
24994
|
}
|
|
24909
24995
|
]
|
|
24996
|
+
},
|
|
24997
|
+
"examples": {
|
|
24998
|
+
"default": {
|
|
24999
|
+
"summary": "Example removing a user in a branch protection rule",
|
|
25000
|
+
"value": {
|
|
25001
|
+
"users": [
|
|
25002
|
+
"octocat"
|
|
25003
|
+
]
|
|
25004
|
+
}
|
|
25005
|
+
}
|
|
24910
25006
|
}
|
|
24911
25007
|
}
|
|
24912
25008
|
}
|
|
@@ -26751,7 +26847,7 @@
|
|
|
26751
26847
|
},
|
|
26752
26848
|
"delete": {
|
|
26753
26849
|
"summary": "Delete a code scanning analysis from a repository",
|
|
26754
|
-
"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* `
|
|
26850
|
+
"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.",
|
|
26755
26851
|
"operationId": "code-scanning/delete-analysis",
|
|
26756
26852
|
"tags": [
|
|
26757
26853
|
"code-scanning"
|
|
@@ -28202,6 +28298,9 @@
|
|
|
28202
28298
|
},
|
|
28203
28299
|
"500": {
|
|
28204
28300
|
"$ref": "#/components/responses/internal_error"
|
|
28301
|
+
},
|
|
28302
|
+
"503": {
|
|
28303
|
+
"$ref": "#/components/responses/service_unavailable"
|
|
28205
28304
|
}
|
|
28206
28305
|
},
|
|
28207
28306
|
"x-github": {
|
|
@@ -28623,6 +28722,9 @@
|
|
|
28623
28722
|
},
|
|
28624
28723
|
"500": {
|
|
28625
28724
|
"$ref": "#/components/responses/internal_error"
|
|
28725
|
+
},
|
|
28726
|
+
"503": {
|
|
28727
|
+
"$ref": "#/components/responses/service_unavailable"
|
|
28626
28728
|
}
|
|
28627
28729
|
},
|
|
28628
28730
|
"x-github": {
|
|
@@ -28636,7 +28738,7 @@
|
|
|
28636
28738
|
"/repos/{owner}/{repo}/contents/{path}": {
|
|
28637
28739
|
"get": {
|
|
28638
28740
|
"summary": "Get repository content",
|
|
28639
|
-
"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**
|
|
28741
|
+
"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.",
|
|
28640
28742
|
"tags": [
|
|
28641
28743
|
"repos"
|
|
28642
28744
|
],
|
|
@@ -32962,6 +33064,14 @@
|
|
|
32962
33064
|
]
|
|
32963
33065
|
}
|
|
32964
33066
|
}
|
|
33067
|
+
},
|
|
33068
|
+
"examples": {
|
|
33069
|
+
"default": {
|
|
33070
|
+
"summary": "Example request body",
|
|
33071
|
+
"value": {
|
|
33072
|
+
"permissions": "write"
|
|
33073
|
+
}
|
|
33074
|
+
}
|
|
32965
33075
|
}
|
|
32966
33076
|
}
|
|
32967
33077
|
}
|
|
@@ -34063,6 +34173,12 @@
|
|
|
34063
34173
|
"closed"
|
|
34064
34174
|
]
|
|
34065
34175
|
},
|
|
34176
|
+
"state_reason": {
|
|
34177
|
+
"type": "string",
|
|
34178
|
+
"nullable": true,
|
|
34179
|
+
"description": "The reason for the current state",
|
|
34180
|
+
"example": "not_planned"
|
|
34181
|
+
},
|
|
34066
34182
|
"milestone": {
|
|
34067
34183
|
"oneOf": [
|
|
34068
34184
|
{
|
|
@@ -38621,6 +38737,9 @@
|
|
|
38621
38737
|
},
|
|
38622
38738
|
"500": {
|
|
38623
38739
|
"$ref": "#/components/responses/internal_error"
|
|
38740
|
+
},
|
|
38741
|
+
"503": {
|
|
38742
|
+
"$ref": "#/components/responses/service_unavailable"
|
|
38624
38743
|
}
|
|
38625
38744
|
},
|
|
38626
38745
|
"x-github": {
|
|
@@ -39168,6 +39287,9 @@
|
|
|
39168
39287
|
},
|
|
39169
39288
|
"500": {
|
|
39170
39289
|
"$ref": "#/components/responses/internal_error"
|
|
39290
|
+
},
|
|
39291
|
+
"503": {
|
|
39292
|
+
"$ref": "#/components/responses/service_unavailable"
|
|
39171
39293
|
}
|
|
39172
39294
|
},
|
|
39173
39295
|
"x-github": {
|
|
@@ -43138,7 +43260,7 @@
|
|
|
43138
43260
|
"/repos/{template_owner}/{template_repo}/generate": {
|
|
43139
43261
|
"post": {
|
|
43140
43262
|
"summary": "Create a repository using a template",
|
|
43141
|
-
"description": "Creates a new repository using a repository template. Use the `template_owner` and `template_repo` route parameters to specify the repository to use as the template.
|
|
43263
|
+
"description": "Creates a new repository using a repository template. Use the `template_owner` and `template_repo` route parameters to specify the repository to use as the template. If the repository is not public, the authenticated user must own or be a member of an organization that owns the repository. To check if a repository is available to use as a template, get the repository's information using the [Get a repository](https://docs.github.com/enterprise-server@3.4/rest/reference/repos#get-a-repository) endpoint and check that the `is_template` key is `true`.\n\n**OAuth scope requirements**\n\nWhen using [OAuth](https://docs.github.com/enterprise-server@3.4/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/), authorizations must include:\n\n* `public_repo` scope or `repo` scope to create a public repository. Note: For GitHub AE, use `repo` scope to create an internal repository.\n* `repo` scope to create a private repository",
|
|
43142
43264
|
"tags": [
|
|
43143
43265
|
"repos"
|
|
43144
43266
|
],
|
|
@@ -53295,14 +53417,6 @@
|
|
|
53295
53417
|
"write"
|
|
53296
53418
|
]
|
|
53297
53419
|
},
|
|
53298
|
-
"organization_custom_roles": {
|
|
53299
|
-
"type": "string",
|
|
53300
|
-
"description": "The level of permission to grant the access token for custom roles management.",
|
|
53301
|
-
"enum": [
|
|
53302
|
-
"read",
|
|
53303
|
-
"write"
|
|
53304
|
-
]
|
|
53305
|
-
},
|
|
53306
53420
|
"deployments": {
|
|
53307
53421
|
"type": "string",
|
|
53308
53422
|
"description": "The level of permission to grant the access token for deployments and deployment statuses.",
|
|
@@ -55306,6 +55420,10 @@
|
|
|
55306
55420
|
"starred_at": {
|
|
55307
55421
|
"type": "string",
|
|
55308
55422
|
"example": "\"2020-07-09T00:17:42Z\""
|
|
55423
|
+
},
|
|
55424
|
+
"anonymous_access_enabled": {
|
|
55425
|
+
"type": "boolean",
|
|
55426
|
+
"description": "Whether anonymous git access is enabled for this repository"
|
|
55309
55427
|
}
|
|
55310
55428
|
},
|
|
55311
55429
|
"required": [
|
|
@@ -59214,6 +59332,10 @@
|
|
|
59214
59332
|
"starred_at": {
|
|
59215
59333
|
"type": "string",
|
|
59216
59334
|
"example": "\"2020-07-09T00:17:42Z\""
|
|
59335
|
+
},
|
|
59336
|
+
"anonymous_access_enabled": {
|
|
59337
|
+
"type": "boolean",
|
|
59338
|
+
"description": "Whether anonymous git access is enabled for this repository"
|
|
59217
59339
|
}
|
|
59218
59340
|
},
|
|
59219
59341
|
"required": [
|
|
@@ -60847,6 +60969,263 @@
|
|
|
60847
60969
|
"parent"
|
|
60848
60970
|
]
|
|
60849
60971
|
},
|
|
60972
|
+
"team-organization": {
|
|
60973
|
+
"title": "Team Organization",
|
|
60974
|
+
"description": "Team Organization",
|
|
60975
|
+
"type": "object",
|
|
60976
|
+
"properties": {
|
|
60977
|
+
"login": {
|
|
60978
|
+
"type": "string",
|
|
60979
|
+
"example": "github"
|
|
60980
|
+
},
|
|
60981
|
+
"id": {
|
|
60982
|
+
"type": "integer",
|
|
60983
|
+
"example": 1
|
|
60984
|
+
},
|
|
60985
|
+
"node_id": {
|
|
60986
|
+
"type": "string",
|
|
60987
|
+
"example": "MDEyOk9yZ2FuaXphdGlvbjE="
|
|
60988
|
+
},
|
|
60989
|
+
"url": {
|
|
60990
|
+
"type": "string",
|
|
60991
|
+
"format": "uri",
|
|
60992
|
+
"example": "https://api.github.com/orgs/github"
|
|
60993
|
+
},
|
|
60994
|
+
"repos_url": {
|
|
60995
|
+
"type": "string",
|
|
60996
|
+
"format": "uri",
|
|
60997
|
+
"example": "https://api.github.com/orgs/github/repos"
|
|
60998
|
+
},
|
|
60999
|
+
"events_url": {
|
|
61000
|
+
"type": "string",
|
|
61001
|
+
"format": "uri",
|
|
61002
|
+
"example": "https://api.github.com/orgs/github/events"
|
|
61003
|
+
},
|
|
61004
|
+
"hooks_url": {
|
|
61005
|
+
"type": "string",
|
|
61006
|
+
"example": "https://api.github.com/orgs/github/hooks"
|
|
61007
|
+
},
|
|
61008
|
+
"issues_url": {
|
|
61009
|
+
"type": "string",
|
|
61010
|
+
"example": "https://api.github.com/orgs/github/issues"
|
|
61011
|
+
},
|
|
61012
|
+
"members_url": {
|
|
61013
|
+
"type": "string",
|
|
61014
|
+
"example": "https://api.github.com/orgs/github/members{/member}"
|
|
61015
|
+
},
|
|
61016
|
+
"public_members_url": {
|
|
61017
|
+
"type": "string",
|
|
61018
|
+
"example": "https://api.github.com/orgs/github/public_members{/member}"
|
|
61019
|
+
},
|
|
61020
|
+
"avatar_url": {
|
|
61021
|
+
"type": "string",
|
|
61022
|
+
"example": "https://github.com/images/error/octocat_happy.gif"
|
|
61023
|
+
},
|
|
61024
|
+
"description": {
|
|
61025
|
+
"type": "string",
|
|
61026
|
+
"example": "A great organization",
|
|
61027
|
+
"nullable": true
|
|
61028
|
+
},
|
|
61029
|
+
"name": {
|
|
61030
|
+
"type": "string",
|
|
61031
|
+
"example": "github"
|
|
61032
|
+
},
|
|
61033
|
+
"company": {
|
|
61034
|
+
"type": "string",
|
|
61035
|
+
"example": "GitHub"
|
|
61036
|
+
},
|
|
61037
|
+
"blog": {
|
|
61038
|
+
"type": "string",
|
|
61039
|
+
"format": "uri",
|
|
61040
|
+
"example": "https://github.com/blog"
|
|
61041
|
+
},
|
|
61042
|
+
"location": {
|
|
61043
|
+
"type": "string",
|
|
61044
|
+
"example": "San Francisco"
|
|
61045
|
+
},
|
|
61046
|
+
"email": {
|
|
61047
|
+
"type": "string",
|
|
61048
|
+
"format": "email",
|
|
61049
|
+
"example": "octocat@github.com"
|
|
61050
|
+
},
|
|
61051
|
+
"twitter_username": {
|
|
61052
|
+
"type": "string",
|
|
61053
|
+
"example": "github",
|
|
61054
|
+
"nullable": true
|
|
61055
|
+
},
|
|
61056
|
+
"is_verified": {
|
|
61057
|
+
"type": "boolean",
|
|
61058
|
+
"example": true
|
|
61059
|
+
},
|
|
61060
|
+
"has_organization_projects": {
|
|
61061
|
+
"type": "boolean",
|
|
61062
|
+
"example": true
|
|
61063
|
+
},
|
|
61064
|
+
"has_repository_projects": {
|
|
61065
|
+
"type": "boolean",
|
|
61066
|
+
"example": true
|
|
61067
|
+
},
|
|
61068
|
+
"public_repos": {
|
|
61069
|
+
"type": "integer",
|
|
61070
|
+
"example": 2
|
|
61071
|
+
},
|
|
61072
|
+
"public_gists": {
|
|
61073
|
+
"type": "integer",
|
|
61074
|
+
"example": 1
|
|
61075
|
+
},
|
|
61076
|
+
"followers": {
|
|
61077
|
+
"type": "integer",
|
|
61078
|
+
"example": 20
|
|
61079
|
+
},
|
|
61080
|
+
"following": {
|
|
61081
|
+
"type": "integer",
|
|
61082
|
+
"example": 0
|
|
61083
|
+
},
|
|
61084
|
+
"html_url": {
|
|
61085
|
+
"type": "string",
|
|
61086
|
+
"format": "uri",
|
|
61087
|
+
"example": "https://github.com/octocat"
|
|
61088
|
+
},
|
|
61089
|
+
"created_at": {
|
|
61090
|
+
"type": "string",
|
|
61091
|
+
"format": "date-time",
|
|
61092
|
+
"example": "2008-01-14T04:33:35Z"
|
|
61093
|
+
},
|
|
61094
|
+
"type": {
|
|
61095
|
+
"type": "string",
|
|
61096
|
+
"example": "Organization"
|
|
61097
|
+
},
|
|
61098
|
+
"total_private_repos": {
|
|
61099
|
+
"type": "integer",
|
|
61100
|
+
"example": 100
|
|
61101
|
+
},
|
|
61102
|
+
"owned_private_repos": {
|
|
61103
|
+
"type": "integer",
|
|
61104
|
+
"example": 100
|
|
61105
|
+
},
|
|
61106
|
+
"private_gists": {
|
|
61107
|
+
"type": "integer",
|
|
61108
|
+
"example": 81,
|
|
61109
|
+
"nullable": true
|
|
61110
|
+
},
|
|
61111
|
+
"disk_usage": {
|
|
61112
|
+
"type": "integer",
|
|
61113
|
+
"example": 10000,
|
|
61114
|
+
"nullable": true
|
|
61115
|
+
},
|
|
61116
|
+
"collaborators": {
|
|
61117
|
+
"type": "integer",
|
|
61118
|
+
"example": 8,
|
|
61119
|
+
"nullable": true
|
|
61120
|
+
},
|
|
61121
|
+
"billing_email": {
|
|
61122
|
+
"type": "string",
|
|
61123
|
+
"format": "email",
|
|
61124
|
+
"example": "org@example.com",
|
|
61125
|
+
"nullable": true
|
|
61126
|
+
},
|
|
61127
|
+
"plan": {
|
|
61128
|
+
"type": "object",
|
|
61129
|
+
"properties": {
|
|
61130
|
+
"name": {
|
|
61131
|
+
"type": "string"
|
|
61132
|
+
},
|
|
61133
|
+
"space": {
|
|
61134
|
+
"type": "integer"
|
|
61135
|
+
},
|
|
61136
|
+
"private_repos": {
|
|
61137
|
+
"type": "integer"
|
|
61138
|
+
},
|
|
61139
|
+
"filled_seats": {
|
|
61140
|
+
"type": "integer"
|
|
61141
|
+
},
|
|
61142
|
+
"seats": {
|
|
61143
|
+
"type": "integer"
|
|
61144
|
+
}
|
|
61145
|
+
},
|
|
61146
|
+
"required": [
|
|
61147
|
+
"name",
|
|
61148
|
+
"space",
|
|
61149
|
+
"private_repos"
|
|
61150
|
+
]
|
|
61151
|
+
},
|
|
61152
|
+
"default_repository_permission": {
|
|
61153
|
+
"type": "string",
|
|
61154
|
+
"nullable": true
|
|
61155
|
+
},
|
|
61156
|
+
"members_can_create_repositories": {
|
|
61157
|
+
"type": "boolean",
|
|
61158
|
+
"example": true,
|
|
61159
|
+
"nullable": true
|
|
61160
|
+
},
|
|
61161
|
+
"two_factor_requirement_enabled": {
|
|
61162
|
+
"type": "boolean",
|
|
61163
|
+
"example": true,
|
|
61164
|
+
"nullable": true
|
|
61165
|
+
},
|
|
61166
|
+
"members_allowed_repository_creation_type": {
|
|
61167
|
+
"type": "string",
|
|
61168
|
+
"example": "all"
|
|
61169
|
+
},
|
|
61170
|
+
"members_can_create_public_repositories": {
|
|
61171
|
+
"type": "boolean",
|
|
61172
|
+
"example": true
|
|
61173
|
+
},
|
|
61174
|
+
"members_can_create_private_repositories": {
|
|
61175
|
+
"type": "boolean",
|
|
61176
|
+
"example": true
|
|
61177
|
+
},
|
|
61178
|
+
"members_can_create_internal_repositories": {
|
|
61179
|
+
"type": "boolean",
|
|
61180
|
+
"example": true
|
|
61181
|
+
},
|
|
61182
|
+
"members_can_create_pages": {
|
|
61183
|
+
"type": "boolean",
|
|
61184
|
+
"example": true
|
|
61185
|
+
},
|
|
61186
|
+
"members_can_create_public_pages": {
|
|
61187
|
+
"type": "boolean",
|
|
61188
|
+
"example": true
|
|
61189
|
+
},
|
|
61190
|
+
"members_can_create_private_pages": {
|
|
61191
|
+
"type": "boolean",
|
|
61192
|
+
"example": true
|
|
61193
|
+
},
|
|
61194
|
+
"members_can_fork_private_repositories": {
|
|
61195
|
+
"type": "boolean",
|
|
61196
|
+
"example": false,
|
|
61197
|
+
"nullable": true
|
|
61198
|
+
},
|
|
61199
|
+
"updated_at": {
|
|
61200
|
+
"type": "string",
|
|
61201
|
+
"format": "date-time"
|
|
61202
|
+
}
|
|
61203
|
+
},
|
|
61204
|
+
"required": [
|
|
61205
|
+
"login",
|
|
61206
|
+
"url",
|
|
61207
|
+
"id",
|
|
61208
|
+
"node_id",
|
|
61209
|
+
"repos_url",
|
|
61210
|
+
"events_url",
|
|
61211
|
+
"hooks_url",
|
|
61212
|
+
"issues_url",
|
|
61213
|
+
"members_url",
|
|
61214
|
+
"public_members_url",
|
|
61215
|
+
"avatar_url",
|
|
61216
|
+
"description",
|
|
61217
|
+
"html_url",
|
|
61218
|
+
"has_organization_projects",
|
|
61219
|
+
"has_repository_projects",
|
|
61220
|
+
"public_repos",
|
|
61221
|
+
"public_gists",
|
|
61222
|
+
"followers",
|
|
61223
|
+
"following",
|
|
61224
|
+
"type",
|
|
61225
|
+
"created_at",
|
|
61226
|
+
"updated_at"
|
|
61227
|
+
]
|
|
61228
|
+
},
|
|
60850
61229
|
"team-full": {
|
|
60851
61230
|
"title": "Full Team",
|
|
60852
61231
|
"description": "Groups of organization members that gives permissions on specified repositories.",
|
|
@@ -60931,7 +61310,7 @@
|
|
|
60931
61310
|
"example": "2017-08-17T12:37:15Z"
|
|
60932
61311
|
},
|
|
60933
61312
|
"organization": {
|
|
60934
|
-
"$ref": "#/components/schemas/organization
|
|
61313
|
+
"$ref": "#/components/schemas/team-organization"
|
|
60935
61314
|
},
|
|
60936
61315
|
"ldap_dn": {
|
|
60937
61316
|
"description": "Distinguished Name (DN) that team maps to within LDAP environment",
|
|
@@ -65629,6 +66008,11 @@
|
|
|
65629
66008
|
"nullable": true,
|
|
65630
66009
|
"type": "string",
|
|
65631
66010
|
"description": "Detailed documentation for the rule as GitHub Flavored Markdown."
|
|
66011
|
+
},
|
|
66012
|
+
"help_uri": {
|
|
66013
|
+
"nullable": true,
|
|
66014
|
+
"type": "string",
|
|
66015
|
+
"description": "A link to the documentation for the rule used to detect the alert."
|
|
65632
66016
|
}
|
|
65633
66017
|
}
|
|
65634
66018
|
},
|
|
@@ -85863,6 +86247,109 @@
|
|
|
85863
86247
|
}
|
|
85864
86248
|
]
|
|
85865
86249
|
},
|
|
86250
|
+
"branch-get": {
|
|
86251
|
+
"value": {
|
|
86252
|
+
"name": "main",
|
|
86253
|
+
"commit": {
|
|
86254
|
+
"sha": "7fd1a60b01f91b314f59955a4e4d4e80d8edf11d",
|
|
86255
|
+
"node_id": "MDY6Q29tbWl0MTI5NjI2OTo3ZmQxYTYwYjAxZjkxYjMxNGY1OTk1NWE0ZTRkNGU4MGQ4ZWRmMTFk",
|
|
86256
|
+
"commit": {
|
|
86257
|
+
"author": {
|
|
86258
|
+
"name": "The Octocat",
|
|
86259
|
+
"email": "octocat@nowhere.com",
|
|
86260
|
+
"date": "2012-03-06T23:06:50Z"
|
|
86261
|
+
},
|
|
86262
|
+
"committer": {
|
|
86263
|
+
"name": "The Octocat",
|
|
86264
|
+
"email": "octocat@nowhere.com",
|
|
86265
|
+
"date": "2012-03-06T23:06:50Z"
|
|
86266
|
+
},
|
|
86267
|
+
"message": "Merge pull request #6 from Spaceghost/patch-1\n\nNew line at end of file.",
|
|
86268
|
+
"tree": {
|
|
86269
|
+
"sha": "b4eecafa9be2f2006ce1b709d6857b07069b4608",
|
|
86270
|
+
"url": "https://api.github.com/repos/octocat/Hello-World/git/trees/b4eecafa9be2f2006ce1b709d6857b07069b4608"
|
|
86271
|
+
},
|
|
86272
|
+
"url": "https://api.github.com/repos/octocat/Hello-World/git/commits/7fd1a60b01f91b314f59955a4e4d4e80d8edf11d",
|
|
86273
|
+
"comment_count": 77,
|
|
86274
|
+
"verification": {
|
|
86275
|
+
"verified": false,
|
|
86276
|
+
"reason": "unsigned",
|
|
86277
|
+
"signature": null,
|
|
86278
|
+
"payload": null
|
|
86279
|
+
}
|
|
86280
|
+
},
|
|
86281
|
+
"url": "https://api.github.com/repos/octocat/Hello-World/commits/7fd1a60b01f91b314f59955a4e4d4e80d8edf11d",
|
|
86282
|
+
"html_url": "https://github.com/octocat/Hello-World/commit/7fd1a60b01f91b314f59955a4e4d4e80d8edf11d",
|
|
86283
|
+
"comments_url": "https://api.github.com/repos/octocat/Hello-World/commits/7fd1a60b01f91b314f59955a4e4d4e80d8edf11d/comments",
|
|
86284
|
+
"author": {
|
|
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
|
+
"committer": {
|
|
86305
|
+
"login": "octocat",
|
|
86306
|
+
"id": 583231,
|
|
86307
|
+
"node_id": "MDQ6VXNlcjU4MzIzMQ==",
|
|
86308
|
+
"avatar_url": "https://avatars.githubusercontent.com/u/583231?v=4",
|
|
86309
|
+
"gravatar_id": "",
|
|
86310
|
+
"url": "https://api.github.com/users/octocat",
|
|
86311
|
+
"html_url": "https://github.com/octocat",
|
|
86312
|
+
"followers_url": "https://api.github.com/users/octocat/followers",
|
|
86313
|
+
"following_url": "https://api.github.com/users/octocat/following{/other_user}",
|
|
86314
|
+
"gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
|
|
86315
|
+
"starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
|
|
86316
|
+
"subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
|
|
86317
|
+
"organizations_url": "https://api.github.com/users/octocat/orgs",
|
|
86318
|
+
"repos_url": "https://api.github.com/users/octocat/repos",
|
|
86319
|
+
"events_url": "https://api.github.com/users/octocat/events{/privacy}",
|
|
86320
|
+
"received_events_url": "https://api.github.com/users/octocat/received_events",
|
|
86321
|
+
"type": "User",
|
|
86322
|
+
"site_admin": false
|
|
86323
|
+
},
|
|
86324
|
+
"parents": [
|
|
86325
|
+
{
|
|
86326
|
+
"sha": "553c2077f0edc3d5dc5d17262f6aa498e69d6f8e",
|
|
86327
|
+
"url": "https://api.github.com/repos/octocat/Hello-World/commits/553c2077f0edc3d5dc5d17262f6aa498e69d6f8e",
|
|
86328
|
+
"html_url": "https://github.com/octocat/Hello-World/commit/553c2077f0edc3d5dc5d17262f6aa498e69d6f8e"
|
|
86329
|
+
},
|
|
86330
|
+
{
|
|
86331
|
+
"sha": "762941318ee16e59dabbacb1b4049eec22f0d303",
|
|
86332
|
+
"url": "https://api.github.com/repos/octocat/Hello-World/commits/762941318ee16e59dabbacb1b4049eec22f0d303",
|
|
86333
|
+
"html_url": "https://github.com/octocat/Hello-World/commit/762941318ee16e59dabbacb1b4049eec22f0d303"
|
|
86334
|
+
}
|
|
86335
|
+
]
|
|
86336
|
+
},
|
|
86337
|
+
"_links": {
|
|
86338
|
+
"self": "https://api.github.com/repos/octocat/Hello-World/branches/main",
|
|
86339
|
+
"html": "https://github.com/octocat/Hello-World/tree/main"
|
|
86340
|
+
},
|
|
86341
|
+
"protected": false,
|
|
86342
|
+
"protection": {
|
|
86343
|
+
"enabled": false,
|
|
86344
|
+
"required_status_checks": {
|
|
86345
|
+
"enforcement_level": "off",
|
|
86346
|
+
"contexts": [],
|
|
86347
|
+
"checks": []
|
|
86348
|
+
}
|
|
86349
|
+
},
|
|
86350
|
+
"protection_url": "https://api.github.com/repos/octocat/Hello-World/branches/main/protection"
|
|
86351
|
+
}
|
|
86352
|
+
},
|
|
85866
86353
|
"branch-protection": {
|
|
85867
86354
|
"value": {
|
|
85868
86355
|
"url": "https://api.github.com/repos/octocat/Hello-World/branches/master/protection",
|
|
@@ -86059,6 +86546,71 @@
|
|
|
86059
86546
|
}
|
|
86060
86547
|
}
|
|
86061
86548
|
},
|
|
86549
|
+
"branch-protection-update": {
|
|
86550
|
+
"value": {
|
|
86551
|
+
"url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection",
|
|
86552
|
+
"required_status_checks": {
|
|
86553
|
+
"url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection/required_status_checks",
|
|
86554
|
+
"strict": true,
|
|
86555
|
+
"contexts": [
|
|
86556
|
+
"continuous-integration/travis-ci"
|
|
86557
|
+
],
|
|
86558
|
+
"contexts_url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection/required_status_checks/contexts",
|
|
86559
|
+
"checks": [
|
|
86560
|
+
{
|
|
86561
|
+
"context": "continuous-integration/travis-ci",
|
|
86562
|
+
"app_id": null
|
|
86563
|
+
}
|
|
86564
|
+
]
|
|
86565
|
+
},
|
|
86566
|
+
"restrictions": {
|
|
86567
|
+
"url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection/restrictions",
|
|
86568
|
+
"users_url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection/restrictions/users",
|
|
86569
|
+
"teams_url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection/restrictions/teams",
|
|
86570
|
+
"apps_url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection/restrictions/apps",
|
|
86571
|
+
"users": [],
|
|
86572
|
+
"teams": [],
|
|
86573
|
+
"apps": []
|
|
86574
|
+
},
|
|
86575
|
+
"required_pull_request_reviews": {
|
|
86576
|
+
"url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection/required_pull_request_reviews",
|
|
86577
|
+
"dismiss_stale_reviews": true,
|
|
86578
|
+
"require_code_owner_reviews": true,
|
|
86579
|
+
"required_approving_review_count": 2,
|
|
86580
|
+
"dismissal_restrictions": {
|
|
86581
|
+
"url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection/dismissal_restrictions",
|
|
86582
|
+
"users_url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection/dismissal_restrictions/users",
|
|
86583
|
+
"teams_url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection/dismissal_restrictions/teams",
|
|
86584
|
+
"users": [],
|
|
86585
|
+
"teams": [],
|
|
86586
|
+
"apps": []
|
|
86587
|
+
}
|
|
86588
|
+
},
|
|
86589
|
+
"required_signatures": {
|
|
86590
|
+
"url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection/required_signatures",
|
|
86591
|
+
"enabled": false
|
|
86592
|
+
},
|
|
86593
|
+
"enforce_admins": {
|
|
86594
|
+
"url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection/enforce_admins",
|
|
86595
|
+
"enabled": true
|
|
86596
|
+
},
|
|
86597
|
+
"required_linear_history": {
|
|
86598
|
+
"enabled": true
|
|
86599
|
+
},
|
|
86600
|
+
"allow_force_pushes": {
|
|
86601
|
+
"enabled": true
|
|
86602
|
+
},
|
|
86603
|
+
"allow_deletions": {
|
|
86604
|
+
"enabled": true
|
|
86605
|
+
},
|
|
86606
|
+
"block_creations": {
|
|
86607
|
+
"enabled": true
|
|
86608
|
+
},
|
|
86609
|
+
"required_conversation_resolution": {
|
|
86610
|
+
"enabled": true
|
|
86611
|
+
}
|
|
86612
|
+
}
|
|
86613
|
+
},
|
|
86062
86614
|
"protected-branch-admin-enforced-2": {
|
|
86063
86615
|
"value": {
|
|
86064
86616
|
"url": "https://api.github.com/repos/octocat/Hello-World/branches/master/protection/enforce_admins",
|
|
@@ -87488,7 +88040,8 @@
|
|
|
87488
88040
|
"security",
|
|
87489
88041
|
"external/cwe/cwe-022"
|
|
87490
88042
|
],
|
|
87491
|
-
"help": "# Arbitrary file write during zip extraction (\"Zip Slip\")\\nExtracting files from a malicious zip archive without validating that the destination file path is within the destination directory can cause files outside the destination directory to be overwritten ..."
|
|
88043
|
+
"help": "# Arbitrary file write during zip extraction (\"Zip Slip\")\\nExtracting files from a malicious zip archive without validating that the destination file path is within the destination directory can cause files outside the destination directory to be overwritten ...",
|
|
88044
|
+
"help_uri": "https://codeql.github.com/"
|
|
87492
88045
|
},
|
|
87493
88046
|
"tool": {
|
|
87494
88047
|
"name": "CodeQL",
|
|
@@ -87558,7 +88111,8 @@
|
|
|
87558
88111
|
"security",
|
|
87559
88112
|
"external/cwe/cwe-022"
|
|
87560
88113
|
],
|
|
87561
|
-
"help": "# Arbitrary file write during zip extraction (\"Zip Slip\")\\nExtracting files from a malicious zip archive without validating that the destination file path is within the destination directory can cause files outside the destination directory to be overwritten ..."
|
|
88114
|
+
"help": "# Arbitrary file write during zip extraction (\"Zip Slip\")\\nExtracting files from a malicious zip archive without validating that the destination file path is within the destination directory can cause files outside the destination directory to be overwritten ...",
|
|
88115
|
+
"help_uri": "https://codeql.github.com/"
|
|
87562
88116
|
},
|
|
87563
88117
|
"tool": {
|
|
87564
88118
|
"name": "CodeQL",
|
|
@@ -87594,6 +88148,7 @@
|
|
|
87594
88148
|
"ref": "refs/heads/main",
|
|
87595
88149
|
"analysis_key": ".github/workflows/codeql-analysis.yml:CodeQL-Build",
|
|
87596
88150
|
"environment": "",
|
|
88151
|
+
"category": ".github/workflows/codeql-analysis.yml:CodeQL-Build",
|
|
87597
88152
|
"state": "open",
|
|
87598
88153
|
"fixed_at": null,
|
|
87599
88154
|
"commit_sha": "39406e42cb832f683daa691dd652a8dc36ee8930",
|
|
@@ -90854,7 +91409,8 @@
|
|
|
90854
91409
|
"type": "User",
|
|
90855
91410
|
"site_admin": false
|
|
90856
91411
|
},
|
|
90857
|
-
"author_association": "COLLABORATOR"
|
|
91412
|
+
"author_association": "COLLABORATOR",
|
|
91413
|
+
"state_reason": "completed"
|
|
90858
91414
|
}
|
|
90859
91415
|
]
|
|
90860
91416
|
},
|
|
@@ -91014,7 +91570,8 @@
|
|
|
91014
91570
|
"type": "User",
|
|
91015
91571
|
"site_admin": false
|
|
91016
91572
|
},
|
|
91017
|
-
"author_association": "COLLABORATOR"
|
|
91573
|
+
"author_association": "COLLABORATOR",
|
|
91574
|
+
"state_reason": "completed"
|
|
91018
91575
|
}
|
|
91019
91576
|
},
|
|
91020
91577
|
"issue-comment-items": {
|
|
@@ -91250,7 +91807,8 @@
|
|
|
91250
91807
|
"closed_at": null,
|
|
91251
91808
|
"created_at": "2011-04-22T13:33:48Z",
|
|
91252
91809
|
"updated_at": "2011-04-22T13:33:48Z",
|
|
91253
|
-
"author_association": "COLLABORATOR"
|
|
91810
|
+
"author_association": "COLLABORATOR",
|
|
91811
|
+
"state_reason": "completed"
|
|
91254
91812
|
}
|
|
91255
91813
|
}
|
|
91256
91814
|
]
|
|
@@ -91459,7 +92017,8 @@
|
|
|
91459
92017
|
"closed_at": null,
|
|
91460
92018
|
"created_at": "2011-04-22T13:33:48Z",
|
|
91461
92019
|
"updated_at": "2011-04-22T13:33:48Z",
|
|
91462
|
-
"author_association": "COLLABORATOR"
|
|
92020
|
+
"author_association": "COLLABORATOR",
|
|
92021
|
+
"state_reason": "completed"
|
|
91463
92022
|
}
|
|
91464
92023
|
}
|
|
91465
92024
|
},
|
|
@@ -95683,7 +96242,8 @@
|
|
|
95683
96242
|
"body": "...",
|
|
95684
96243
|
"score": 1,
|
|
95685
96244
|
"locked": true,
|
|
95686
|
-
"author_association": "COLLABORATOR"
|
|
96245
|
+
"author_association": "COLLABORATOR",
|
|
96246
|
+
"state_reason": "completed"
|
|
95687
96247
|
}
|
|
95688
96248
|
]
|
|
95689
96249
|
}
|