@octokit/openapi 7.0.0 → 7.1.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 +831 -48
- package/generated/api.github.com.json +456 -36
- package/generated/ghes-3.2-diff-to-api.github.com.deref.json +1 -1
- package/generated/ghes-3.2-diff-to-api.github.com.json +1 -1
- package/generated/ghes-3.2-diff-to-ghes-3.3.deref.json +1 -8
- package/generated/ghes-3.2-diff-to-ghes-3.3.json +1 -8
- package/generated/ghes-3.2.deref.json +618 -37
- package/generated/ghes-3.2.json +437 -31
- package/generated/ghes-3.3-diff-to-ghes-3.4.deref.json +1 -1
- package/generated/ghes-3.3-diff-to-ghes-3.4.json +1 -1
- package/generated/ghes-3.3.deref.json +618 -37
- package/generated/ghes-3.3.json +437 -31
- package/generated/ghes-3.4-diff-to-ghes-3.5.deref.json +1 -8
- package/generated/ghes-3.4-diff-to-ghes-3.5.json +1 -8
- package/generated/ghes-3.4.deref.json +618 -37
- package/generated/ghes-3.4.json +437 -31
- 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 +1 -8
- package/generated/ghes-3.5-diff-to-ghes-3.6.json +1 -8
- package/generated/ghes-3.5.deref.json +620 -39
- package/generated/ghes-3.5.json +439 -33
- package/generated/ghes-3.6-anicca-diff-to-api.github.com.deref.json +0 -56
- package/generated/ghes-3.6-diff-to-api.github.com.deref.json +1 -164
- package/generated/ghes-3.6-diff-to-api.github.com.json +1 -130
- package/generated/ghes-3.6.deref.json +622 -53
- package/generated/ghes-3.6.json +441 -47
- package/generated/github.ae-diff-to-api.github.com.deref.json +1 -8
- package/generated/github.ae-diff-to-api.github.com.json +1 -8
- package/generated/github.ae.deref.json +613 -32
- package/generated/github.ae.json +437 -31
- package/index.js +2 -0
- package/package.json +1 -1
package/generated/ghes-3.6.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"openapi": "3.0.3",
|
|
3
3
|
"info": {
|
|
4
|
-
"version": "7.
|
|
4
|
+
"version": "7.1.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": {
|
|
@@ -18297,13 +18297,6 @@
|
|
|
18297
18297
|
"permission": {
|
|
18298
18298
|
"type": "string",
|
|
18299
18299
|
"description": "The permission to grant the team on this repository. If no permission is specified, the team's `permission` attribute will be used to determine what permission to grant the team on this repository.",
|
|
18300
|
-
"enum": [
|
|
18301
|
-
"pull",
|
|
18302
|
-
"push",
|
|
18303
|
-
"admin",
|
|
18304
|
-
"maintain",
|
|
18305
|
-
"triage"
|
|
18306
|
-
],
|
|
18307
18300
|
"default": "push"
|
|
18308
18301
|
}
|
|
18309
18302
|
}
|
|
@@ -21007,7 +21000,7 @@
|
|
|
21007
21000
|
"/repos/{owner}/{repo}/actions/permissions/access": {
|
|
21008
21001
|
"get": {
|
|
21009
21002
|
"summary": "Get the level of access for workflows outside of the repository",
|
|
21010
|
-
"description": "Gets the level of access that workflows outside of the repository have to actions and reusable workflows in the repository.\nThis endpoint only applies to internal repositories
|
|
21003
|
+
"description": "Gets the level of access that workflows outside of the repository have to actions and reusable workflows in the repository.\nThis endpoint only applies to internal repositories. For more information, see \"[Managing GitHub Actions settings for a repository](https://docs.github.com/enterprise-server@3.6/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-github-actions-settings-for-a-repository#allowing-access-to-components-in-an-internal-repository).\"\n\nYou must authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must have the\nrepository `administration` permission to use this endpoint.",
|
|
21011
21004
|
"tags": [
|
|
21012
21005
|
"actions"
|
|
21013
21006
|
],
|
|
@@ -21048,17 +21041,11 @@
|
|
|
21048
21041
|
"category": "actions",
|
|
21049
21042
|
"subcategory": "permissions"
|
|
21050
21043
|
},
|
|
21051
|
-
"x-octokit": {
|
|
21052
|
-
"diff": {
|
|
21053
|
-
"api.github.com": {
|
|
21054
|
-
"type": "changed"
|
|
21055
|
-
}
|
|
21056
|
-
}
|
|
21057
|
-
}
|
|
21044
|
+
"x-octokit": {}
|
|
21058
21045
|
},
|
|
21059
21046
|
"put": {
|
|
21060
21047
|
"summary": "Set the level of access for workflows outside of the repository",
|
|
21061
|
-
"description": "Sets the level of access that workflows outside of the repository have to actions and reusable workflows in the repository.\nThis endpoint only applies to internal repositories
|
|
21048
|
+
"description": "Sets the level of access that workflows outside of the repository have to actions and reusable workflows in the repository.\nThis endpoint only applies to internal repositories. For more information, see \"[Managing GitHub Actions settings for a repository](https://docs.github.com/enterprise-server@3.6/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-github-actions-settings-for-a-repository#allowing-access-to-components-in-an-internal-repository).\"\n\nYou must authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must have the\nrepository `administration` permission to use this endpoint.",
|
|
21062
21049
|
"tags": [
|
|
21063
21050
|
"actions"
|
|
21064
21051
|
],
|
|
@@ -21102,13 +21089,7 @@
|
|
|
21102
21089
|
"category": "actions",
|
|
21103
21090
|
"subcategory": "permissions"
|
|
21104
21091
|
},
|
|
21105
|
-
"x-octokit": {
|
|
21106
|
-
"diff": {
|
|
21107
|
-
"api.github.com": {
|
|
21108
|
-
"type": "changed"
|
|
21109
|
-
}
|
|
21110
|
-
}
|
|
21111
|
-
}
|
|
21092
|
+
"x-octokit": {}
|
|
21112
21093
|
}
|
|
21113
21094
|
},
|
|
21114
21095
|
"/repos/{owner}/{repo}/actions/permissions/selected-actions": {
|
|
@@ -28703,13 +28684,6 @@
|
|
|
28703
28684
|
"permission": {
|
|
28704
28685
|
"type": "string",
|
|
28705
28686
|
"description": "The permission to grant the collaborator. **Only valid on organization-owned repositories.**",
|
|
28706
|
-
"enum": [
|
|
28707
|
-
"pull",
|
|
28708
|
-
"push",
|
|
28709
|
-
"admin",
|
|
28710
|
-
"maintain",
|
|
28711
|
-
"triage"
|
|
28712
|
-
],
|
|
28713
28687
|
"default": "push"
|
|
28714
28688
|
}
|
|
28715
28689
|
}
|
|
@@ -31706,15 +31680,15 @@
|
|
|
31706
31680
|
},
|
|
31707
31681
|
"/repos/{owner}/{repo}/environments": {
|
|
31708
31682
|
"get": {
|
|
31709
|
-
"summary": "
|
|
31710
|
-
"description": "
|
|
31683
|
+
"summary": "List environments",
|
|
31684
|
+
"description": "Lists the environments for a repository.\n\nAnyone with read access to the repository can use this endpoint. If the repository is private, you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint.",
|
|
31711
31685
|
"tags": [
|
|
31712
31686
|
"repos"
|
|
31713
31687
|
],
|
|
31714
31688
|
"operationId": "repos/get-all-environments",
|
|
31715
31689
|
"externalDocs": {
|
|
31716
31690
|
"description": "API method documentation",
|
|
31717
|
-
"url": "https://docs.github.com/enterprise-server@3.6/rest/
|
|
31691
|
+
"url": "https://docs.github.com/enterprise-server@3.6/rest/deployments/environments#list-environments"
|
|
31718
31692
|
},
|
|
31719
31693
|
"parameters": [
|
|
31720
31694
|
{
|
|
@@ -31763,7 +31737,7 @@
|
|
|
31763
31737
|
"x-github": {
|
|
31764
31738
|
"githubCloudOnly": false,
|
|
31765
31739
|
"enabledForGitHubApps": true,
|
|
31766
|
-
"category": "
|
|
31740
|
+
"category": "deployments",
|
|
31767
31741
|
"subcategory": "environments"
|
|
31768
31742
|
},
|
|
31769
31743
|
"x-octokit": {}
|
|
@@ -31772,7 +31746,7 @@
|
|
|
31772
31746
|
"/repos/{owner}/{repo}/environments/{environment_name}": {
|
|
31773
31747
|
"get": {
|
|
31774
31748
|
"summary": "Get an environment",
|
|
31775
|
-
"description": "
|
|
31749
|
+
"description": "**Note:** To get information about name patterns that branches must match in order to deploy to this environment, see \"[Get a deployment branch policy](/rest/deployments/branch-policies#get-a-deployment-branch-policy).\"\n\nAnyone with read access to the repository can use this endpoint. If the\nrepository is private, you must use an access token with the `repo` scope. GitHub\nApps must have the `actions:read` permission to use this endpoint.",
|
|
31776
31750
|
"tags": [
|
|
31777
31751
|
"repos"
|
|
31778
31752
|
],
|
|
@@ -31819,7 +31793,7 @@
|
|
|
31819
31793
|
},
|
|
31820
31794
|
"put": {
|
|
31821
31795
|
"summary": "Create or update an environment",
|
|
31822
|
-
"description": "Create or update an environment with protection rules, such as required reviewers. For more information about environment protection rules, see \"[Environments](/actions/reference/environments#environment-protection-rules).\"\n\n**Note:**
|
|
31796
|
+
"description": "Create or update an environment with protection rules, such as required reviewers. For more information about environment protection rules, see \"[Environments](/actions/reference/environments#environment-protection-rules).\"\n\n**Note:** To create or update name patterns that branches must match in order to deploy to this environment, see \"[Deployment branch policies](/rest/deployments/branch-policies).\"\n\n**Note:** To create or update secrets for an environment, see \"[Secrets](/rest/reference/actions#secrets).\"\n\nYou must authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must have the `administration:write` permission for the repository to use this endpoint.",
|
|
31823
31797
|
"tags": [
|
|
31824
31798
|
"repos"
|
|
31825
31799
|
],
|
|
@@ -31869,10 +31843,31 @@
|
|
|
31869
31843
|
}
|
|
31870
31844
|
},
|
|
31871
31845
|
"deployment_branch_policy": {
|
|
31872
|
-
"$ref": "#/components/schemas/deployment-branch-policy"
|
|
31846
|
+
"$ref": "#/components/schemas/deployment-branch-policy-settings"
|
|
31873
31847
|
}
|
|
31874
31848
|
},
|
|
31875
31849
|
"additionalProperties": false
|
|
31850
|
+
},
|
|
31851
|
+
"examples": {
|
|
31852
|
+
"default": {
|
|
31853
|
+
"value": {
|
|
31854
|
+
"wait_timer": 30,
|
|
31855
|
+
"reviewers": [
|
|
31856
|
+
{
|
|
31857
|
+
"type": "User",
|
|
31858
|
+
"id": 1
|
|
31859
|
+
},
|
|
31860
|
+
{
|
|
31861
|
+
"type": "Team",
|
|
31862
|
+
"id": 1
|
|
31863
|
+
}
|
|
31864
|
+
],
|
|
31865
|
+
"deployment_branch_policy": {
|
|
31866
|
+
"protected_branches": false,
|
|
31867
|
+
"custom_branch_policies": true
|
|
31868
|
+
}
|
|
31869
|
+
}
|
|
31870
|
+
}
|
|
31876
31871
|
}
|
|
31877
31872
|
}
|
|
31878
31873
|
}
|
|
@@ -31948,6 +31943,315 @@
|
|
|
31948
31943
|
"x-octokit": {}
|
|
31949
31944
|
}
|
|
31950
31945
|
},
|
|
31946
|
+
"/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies": {
|
|
31947
|
+
"get": {
|
|
31948
|
+
"summary": "List deployment branch policies",
|
|
31949
|
+
"description": "Lists the deployment branch policies for an environment.\n\nAnyone with read access to the repository can use this endpoint. If the repository is private, you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint.",
|
|
31950
|
+
"tags": [
|
|
31951
|
+
"repos"
|
|
31952
|
+
],
|
|
31953
|
+
"operationId": "repos/list-deployment-branch-policies",
|
|
31954
|
+
"externalDocs": {
|
|
31955
|
+
"description": "API method documentation",
|
|
31956
|
+
"url": "https://docs.github.com/enterprise-server@3.6/rest/deployments/branch-policies#list-deployment-branch-policies"
|
|
31957
|
+
},
|
|
31958
|
+
"parameters": [
|
|
31959
|
+
{
|
|
31960
|
+
"$ref": "#/components/parameters/owner"
|
|
31961
|
+
},
|
|
31962
|
+
{
|
|
31963
|
+
"$ref": "#/components/parameters/repo"
|
|
31964
|
+
},
|
|
31965
|
+
{
|
|
31966
|
+
"$ref": "#/components/parameters/environment-name"
|
|
31967
|
+
},
|
|
31968
|
+
{
|
|
31969
|
+
"$ref": "#/components/parameters/per-page"
|
|
31970
|
+
},
|
|
31971
|
+
{
|
|
31972
|
+
"$ref": "#/components/parameters/page"
|
|
31973
|
+
}
|
|
31974
|
+
],
|
|
31975
|
+
"responses": {
|
|
31976
|
+
"200": {
|
|
31977
|
+
"description": "Response",
|
|
31978
|
+
"content": {
|
|
31979
|
+
"application/json": {
|
|
31980
|
+
"schema": {
|
|
31981
|
+
"type": "object",
|
|
31982
|
+
"properties": {
|
|
31983
|
+
"total_count": {
|
|
31984
|
+
"description": "The number of deployment branch policies for the environment.",
|
|
31985
|
+
"type": "integer",
|
|
31986
|
+
"example": 2
|
|
31987
|
+
},
|
|
31988
|
+
"branch_policies": {
|
|
31989
|
+
"type": "array",
|
|
31990
|
+
"items": {
|
|
31991
|
+
"$ref": "#/components/schemas/deployment-branch-policy"
|
|
31992
|
+
}
|
|
31993
|
+
}
|
|
31994
|
+
},
|
|
31995
|
+
"required": [
|
|
31996
|
+
"total_count",
|
|
31997
|
+
"branch_policies"
|
|
31998
|
+
]
|
|
31999
|
+
},
|
|
32000
|
+
"examples": {
|
|
32001
|
+
"default": {
|
|
32002
|
+
"$ref": "#/components/examples/deployment-branch-policies-list"
|
|
32003
|
+
}
|
|
32004
|
+
}
|
|
32005
|
+
}
|
|
32006
|
+
}
|
|
32007
|
+
}
|
|
32008
|
+
},
|
|
32009
|
+
"x-github": {
|
|
32010
|
+
"githubCloudOnly": false,
|
|
32011
|
+
"enabledForGitHubApps": true,
|
|
32012
|
+
"category": "deployments",
|
|
32013
|
+
"subcategory": "branch-policies"
|
|
32014
|
+
},
|
|
32015
|
+
"x-octokit": {}
|
|
32016
|
+
},
|
|
32017
|
+
"post": {
|
|
32018
|
+
"summary": "Create a deployment branch policy",
|
|
32019
|
+
"description": "Creates a deployment branch policy for an environment.\n\nYou must authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must have the `administration:write` permission for the repository to use this endpoint.",
|
|
32020
|
+
"tags": [
|
|
32021
|
+
"repos"
|
|
32022
|
+
],
|
|
32023
|
+
"operationId": "repos/create-deployment-branch-policy",
|
|
32024
|
+
"externalDocs": {
|
|
32025
|
+
"description": "API method documentation",
|
|
32026
|
+
"url": "https://docs.github.com/enterprise-server@3.6/rest/deployments/branch-policies#create-deployment-branch-policy"
|
|
32027
|
+
},
|
|
32028
|
+
"parameters": [
|
|
32029
|
+
{
|
|
32030
|
+
"$ref": "#/components/parameters/owner"
|
|
32031
|
+
},
|
|
32032
|
+
{
|
|
32033
|
+
"$ref": "#/components/parameters/repo"
|
|
32034
|
+
},
|
|
32035
|
+
{
|
|
32036
|
+
"$ref": "#/components/parameters/environment-name"
|
|
32037
|
+
}
|
|
32038
|
+
],
|
|
32039
|
+
"requestBody": {
|
|
32040
|
+
"required": true,
|
|
32041
|
+
"content": {
|
|
32042
|
+
"application/json": {
|
|
32043
|
+
"schema": {
|
|
32044
|
+
"$ref": "#/components/schemas/deployment-branch-policy-name-pattern"
|
|
32045
|
+
},
|
|
32046
|
+
"examples": {
|
|
32047
|
+
"example-wildcard": {
|
|
32048
|
+
"summary": "Example of a wildcard name pattern",
|
|
32049
|
+
"value": {
|
|
32050
|
+
"name": "release/*"
|
|
32051
|
+
}
|
|
32052
|
+
},
|
|
32053
|
+
"example-single-branch": {
|
|
32054
|
+
"summary": "Example of a single branch name pattern",
|
|
32055
|
+
"value": {
|
|
32056
|
+
"name": "main"
|
|
32057
|
+
}
|
|
32058
|
+
}
|
|
32059
|
+
}
|
|
32060
|
+
}
|
|
32061
|
+
}
|
|
32062
|
+
},
|
|
32063
|
+
"responses": {
|
|
32064
|
+
"200": {
|
|
32065
|
+
"description": "Response",
|
|
32066
|
+
"content": {
|
|
32067
|
+
"application/json": {
|
|
32068
|
+
"schema": {
|
|
32069
|
+
"$ref": "#/components/schemas/deployment-branch-policy"
|
|
32070
|
+
},
|
|
32071
|
+
"examples": {
|
|
32072
|
+
"example-wildcard": {
|
|
32073
|
+
"$ref": "#/components/examples/deployment-branch-policy-wildcard"
|
|
32074
|
+
},
|
|
32075
|
+
"example-single-branch": {
|
|
32076
|
+
"$ref": "#/components/examples/deployment-branch-policy-single-branch"
|
|
32077
|
+
}
|
|
32078
|
+
}
|
|
32079
|
+
}
|
|
32080
|
+
}
|
|
32081
|
+
},
|
|
32082
|
+
"303": {
|
|
32083
|
+
"description": "Response if the same branch name pattern already exists"
|
|
32084
|
+
},
|
|
32085
|
+
"404": {
|
|
32086
|
+
"description": "Not Found or `deployment_branch_policy.custom_branch_policies` property for the environment is set to false"
|
|
32087
|
+
}
|
|
32088
|
+
},
|
|
32089
|
+
"x-github": {
|
|
32090
|
+
"githubCloudOnly": false,
|
|
32091
|
+
"enabledForGitHubApps": true,
|
|
32092
|
+
"category": "deployments",
|
|
32093
|
+
"subcategory": "branch-policies"
|
|
32094
|
+
},
|
|
32095
|
+
"x-octokit": {}
|
|
32096
|
+
}
|
|
32097
|
+
},
|
|
32098
|
+
"/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}": {
|
|
32099
|
+
"get": {
|
|
32100
|
+
"summary": "Get a deployment branch policy",
|
|
32101
|
+
"description": "Gets a deployment branch policy for an environment.\n\nAnyone with read access to the repository can use this endpoint. If the repository is private, you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint.",
|
|
32102
|
+
"tags": [
|
|
32103
|
+
"repos"
|
|
32104
|
+
],
|
|
32105
|
+
"operationId": "repos/get-deployment-branch-policy",
|
|
32106
|
+
"externalDocs": {
|
|
32107
|
+
"description": "API method documentation",
|
|
32108
|
+
"url": "https://docs.github.com/enterprise-server@3.6/rest/deployments/branch-policies#get-deployment-branch-policy"
|
|
32109
|
+
},
|
|
32110
|
+
"parameters": [
|
|
32111
|
+
{
|
|
32112
|
+
"$ref": "#/components/parameters/owner"
|
|
32113
|
+
},
|
|
32114
|
+
{
|
|
32115
|
+
"$ref": "#/components/parameters/repo"
|
|
32116
|
+
},
|
|
32117
|
+
{
|
|
32118
|
+
"$ref": "#/components/parameters/environment-name"
|
|
32119
|
+
},
|
|
32120
|
+
{
|
|
32121
|
+
"$ref": "#/components/parameters/branch-policy-id"
|
|
32122
|
+
}
|
|
32123
|
+
],
|
|
32124
|
+
"responses": {
|
|
32125
|
+
"200": {
|
|
32126
|
+
"description": "Response",
|
|
32127
|
+
"content": {
|
|
32128
|
+
"application/json": {
|
|
32129
|
+
"schema": {
|
|
32130
|
+
"$ref": "#/components/schemas/deployment-branch-policy"
|
|
32131
|
+
},
|
|
32132
|
+
"examples": {
|
|
32133
|
+
"default": {
|
|
32134
|
+
"$ref": "#/components/examples/deployment-branch-policy-wildcard"
|
|
32135
|
+
}
|
|
32136
|
+
}
|
|
32137
|
+
}
|
|
32138
|
+
}
|
|
32139
|
+
}
|
|
32140
|
+
},
|
|
32141
|
+
"x-github": {
|
|
32142
|
+
"githubCloudOnly": false,
|
|
32143
|
+
"enabledForGitHubApps": true,
|
|
32144
|
+
"category": "deployments",
|
|
32145
|
+
"subcategory": "branch-policies"
|
|
32146
|
+
},
|
|
32147
|
+
"x-octokit": {}
|
|
32148
|
+
},
|
|
32149
|
+
"put": {
|
|
32150
|
+
"summary": "Update a deployment branch policy",
|
|
32151
|
+
"description": "Updates a deployment branch policy for an environment.\n\nYou must authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must have the `administration:write` permission for the repository to use this endpoint.",
|
|
32152
|
+
"tags": [
|
|
32153
|
+
"repos"
|
|
32154
|
+
],
|
|
32155
|
+
"operationId": "repos/update-deployment-branch-policy",
|
|
32156
|
+
"externalDocs": {
|
|
32157
|
+
"description": "API method documentation",
|
|
32158
|
+
"url": "https://docs.github.com/enterprise-server@3.6/rest/deployments/branch-policies#update-deployment-branch-policy"
|
|
32159
|
+
},
|
|
32160
|
+
"parameters": [
|
|
32161
|
+
{
|
|
32162
|
+
"$ref": "#/components/parameters/owner"
|
|
32163
|
+
},
|
|
32164
|
+
{
|
|
32165
|
+
"$ref": "#/components/parameters/repo"
|
|
32166
|
+
},
|
|
32167
|
+
{
|
|
32168
|
+
"$ref": "#/components/parameters/environment-name"
|
|
32169
|
+
},
|
|
32170
|
+
{
|
|
32171
|
+
"$ref": "#/components/parameters/branch-policy-id"
|
|
32172
|
+
}
|
|
32173
|
+
],
|
|
32174
|
+
"requestBody": {
|
|
32175
|
+
"required": true,
|
|
32176
|
+
"content": {
|
|
32177
|
+
"application/json": {
|
|
32178
|
+
"schema": {
|
|
32179
|
+
"$ref": "#/components/schemas/deployment-branch-policy-name-pattern"
|
|
32180
|
+
},
|
|
32181
|
+
"examples": {
|
|
32182
|
+
"default": {
|
|
32183
|
+
"value": {
|
|
32184
|
+
"name": "release/*"
|
|
32185
|
+
}
|
|
32186
|
+
}
|
|
32187
|
+
}
|
|
32188
|
+
}
|
|
32189
|
+
}
|
|
32190
|
+
},
|
|
32191
|
+
"responses": {
|
|
32192
|
+
"200": {
|
|
32193
|
+
"description": "Response",
|
|
32194
|
+
"content": {
|
|
32195
|
+
"application/json": {
|
|
32196
|
+
"schema": {
|
|
32197
|
+
"$ref": "#/components/schemas/deployment-branch-policy"
|
|
32198
|
+
},
|
|
32199
|
+
"examples": {
|
|
32200
|
+
"default": {
|
|
32201
|
+
"$ref": "#/components/examples/deployment-branch-policy-wildcard"
|
|
32202
|
+
}
|
|
32203
|
+
}
|
|
32204
|
+
}
|
|
32205
|
+
}
|
|
32206
|
+
}
|
|
32207
|
+
},
|
|
32208
|
+
"x-github": {
|
|
32209
|
+
"githubCloudOnly": false,
|
|
32210
|
+
"enabledForGitHubApps": true,
|
|
32211
|
+
"category": "deployments",
|
|
32212
|
+
"subcategory": "branch-policies"
|
|
32213
|
+
},
|
|
32214
|
+
"x-octokit": {}
|
|
32215
|
+
},
|
|
32216
|
+
"delete": {
|
|
32217
|
+
"summary": "Delete a deployment branch policy",
|
|
32218
|
+
"description": "Deletes a deployment branch policy for an environment.\n\nYou must authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must have the `administration:write` permission for the repository to use this endpoint.",
|
|
32219
|
+
"tags": [
|
|
32220
|
+
"repos"
|
|
32221
|
+
],
|
|
32222
|
+
"operationId": "repos/delete-deployment-branch-policy",
|
|
32223
|
+
"externalDocs": {
|
|
32224
|
+
"description": "API method documentation",
|
|
32225
|
+
"url": "https://docs.github.com/enterprise-server@3.6/rest/deployments/branch-policies#delete-deployment-branch-policy"
|
|
32226
|
+
},
|
|
32227
|
+
"parameters": [
|
|
32228
|
+
{
|
|
32229
|
+
"$ref": "#/components/parameters/owner"
|
|
32230
|
+
},
|
|
32231
|
+
{
|
|
32232
|
+
"$ref": "#/components/parameters/repo"
|
|
32233
|
+
},
|
|
32234
|
+
{
|
|
32235
|
+
"$ref": "#/components/parameters/environment-name"
|
|
32236
|
+
},
|
|
32237
|
+
{
|
|
32238
|
+
"$ref": "#/components/parameters/branch-policy-id"
|
|
32239
|
+
}
|
|
32240
|
+
],
|
|
32241
|
+
"responses": {
|
|
32242
|
+
"204": {
|
|
32243
|
+
"description": "Response"
|
|
32244
|
+
}
|
|
32245
|
+
},
|
|
32246
|
+
"x-github": {
|
|
32247
|
+
"githubCloudOnly": false,
|
|
32248
|
+
"enabledForGitHubApps": true,
|
|
32249
|
+
"category": "deployments",
|
|
32250
|
+
"subcategory": "branch-policies"
|
|
32251
|
+
},
|
|
32252
|
+
"x-octokit": {}
|
|
32253
|
+
}
|
|
32254
|
+
},
|
|
31951
32255
|
"/repos/{owner}/{repo}/events": {
|
|
31952
32256
|
"get": {
|
|
31953
32257
|
"summary": "List repository events",
|
|
@@ -72245,7 +72549,13 @@
|
|
|
72245
72549
|
"type": "object",
|
|
72246
72550
|
"properties": {
|
|
72247
72551
|
"type": {
|
|
72248
|
-
"type": "string"
|
|
72552
|
+
"type": "string",
|
|
72553
|
+
"enum": [
|
|
72554
|
+
"dir",
|
|
72555
|
+
"file",
|
|
72556
|
+
"submodule",
|
|
72557
|
+
"symlink"
|
|
72558
|
+
]
|
|
72249
72559
|
},
|
|
72250
72560
|
"size": {
|
|
72251
72561
|
"type": "integer"
|
|
@@ -72326,7 +72636,10 @@
|
|
|
72326
72636
|
"type": "object",
|
|
72327
72637
|
"properties": {
|
|
72328
72638
|
"type": {
|
|
72329
|
-
"type": "string"
|
|
72639
|
+
"type": "string",
|
|
72640
|
+
"enum": [
|
|
72641
|
+
"file"
|
|
72642
|
+
]
|
|
72330
72643
|
},
|
|
72331
72644
|
"encoding": {
|
|
72332
72645
|
"type": "string"
|
|
@@ -72419,7 +72732,10 @@
|
|
|
72419
72732
|
"type": "object",
|
|
72420
72733
|
"properties": {
|
|
72421
72734
|
"type": {
|
|
72422
|
-
"type": "string"
|
|
72735
|
+
"type": "string",
|
|
72736
|
+
"enum": [
|
|
72737
|
+
"symlink"
|
|
72738
|
+
]
|
|
72423
72739
|
},
|
|
72424
72740
|
"target": {
|
|
72425
72741
|
"type": "string"
|
|
@@ -72495,12 +72811,15 @@
|
|
|
72495
72811
|
]
|
|
72496
72812
|
},
|
|
72497
72813
|
"content-submodule": {
|
|
72498
|
-
"title": "
|
|
72499
|
-
"description": "An object describing a
|
|
72814
|
+
"title": "Submodule Content",
|
|
72815
|
+
"description": "An object describing a submodule",
|
|
72500
72816
|
"type": "object",
|
|
72501
72817
|
"properties": {
|
|
72502
72818
|
"type": {
|
|
72503
|
-
"type": "string"
|
|
72819
|
+
"type": "string",
|
|
72820
|
+
"enum": [
|
|
72821
|
+
"submodule"
|
|
72822
|
+
]
|
|
72504
72823
|
},
|
|
72505
72824
|
"submodule_git_url": {
|
|
72506
72825
|
"type": "string",
|
|
@@ -73038,7 +73357,7 @@
|
|
|
73038
73357
|
"example": 30,
|
|
73039
73358
|
"description": "The amount of time to delay a job after the job is initially triggered. The time (in minutes) must be an integer between 0 and 43,200 (30 days)."
|
|
73040
73359
|
},
|
|
73041
|
-
"deployment-branch-policy": {
|
|
73360
|
+
"deployment-branch-policy-settings": {
|
|
73042
73361
|
"type": "object",
|
|
73043
73362
|
"description": "The type of deployment branch policy for this environment. To allow all branches to deploy, set to `null`.",
|
|
73044
73363
|
"properties": {
|
|
@@ -73195,7 +73514,7 @@
|
|
|
73195
73514
|
}
|
|
73196
73515
|
},
|
|
73197
73516
|
"deployment_branch_policy": {
|
|
73198
|
-
"$ref": "#/components/schemas/deployment-branch-policy"
|
|
73517
|
+
"$ref": "#/components/schemas/deployment-branch-policy-settings"
|
|
73199
73518
|
}
|
|
73200
73519
|
},
|
|
73201
73520
|
"required": [
|
|
@@ -73208,6 +73527,41 @@
|
|
|
73208
73527
|
"updated_at"
|
|
73209
73528
|
]
|
|
73210
73529
|
},
|
|
73530
|
+
"deployment-branch-policy": {
|
|
73531
|
+
"title": "Deployment branch policy",
|
|
73532
|
+
"description": "Details of a deployment branch policy.",
|
|
73533
|
+
"type": "object",
|
|
73534
|
+
"properties": {
|
|
73535
|
+
"id": {
|
|
73536
|
+
"description": "The unique identifier of the branch policy.",
|
|
73537
|
+
"type": "integer",
|
|
73538
|
+
"example": 361471
|
|
73539
|
+
},
|
|
73540
|
+
"node_id": {
|
|
73541
|
+
"type": "string",
|
|
73542
|
+
"example": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE="
|
|
73543
|
+
},
|
|
73544
|
+
"name": {
|
|
73545
|
+
"description": "The name pattern that branches must match in order to deploy to the environment.",
|
|
73546
|
+
"type": "string",
|
|
73547
|
+
"example": "release/*"
|
|
73548
|
+
}
|
|
73549
|
+
}
|
|
73550
|
+
},
|
|
73551
|
+
"deployment-branch-policy-name-pattern": {
|
|
73552
|
+
"title": "Deployment branch policy name pattern",
|
|
73553
|
+
"type": "object",
|
|
73554
|
+
"properties": {
|
|
73555
|
+
"name": {
|
|
73556
|
+
"description": "The name pattern that branches must match in order to deploy to the environment.\n\nWildcard characters will not match `/`. For example, to match branches that begin with `release/` and contain an additional single slash, use `release/*/*`.\nFor more information about pattern matching syntax, see the [Ruby File.fnmatch documentation](https://ruby-doc.org/core-2.5.1/File.html#method-c-fnmatch).",
|
|
73557
|
+
"type": "string",
|
|
73558
|
+
"example": "release/*"
|
|
73559
|
+
}
|
|
73560
|
+
},
|
|
73561
|
+
"required": [
|
|
73562
|
+
"name"
|
|
73563
|
+
]
|
|
73564
|
+
},
|
|
73211
73565
|
"short-blob": {
|
|
73212
73566
|
"title": "Short Blob",
|
|
73213
73567
|
"description": "Short Blob",
|
|
@@ -95767,6 +96121,37 @@
|
|
|
95767
96121
|
}
|
|
95768
96122
|
}
|
|
95769
96123
|
},
|
|
96124
|
+
"deployment-branch-policies-list": {
|
|
96125
|
+
"value": {
|
|
96126
|
+
"total_count": 2,
|
|
96127
|
+
"branch_policies": [
|
|
96128
|
+
{
|
|
96129
|
+
"id": 361471,
|
|
96130
|
+
"node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE=",
|
|
96131
|
+
"name": "release/*"
|
|
96132
|
+
},
|
|
96133
|
+
{
|
|
96134
|
+
"id": 361472,
|
|
96135
|
+
"node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzI=",
|
|
96136
|
+
"name": "main"
|
|
96137
|
+
}
|
|
96138
|
+
]
|
|
96139
|
+
}
|
|
96140
|
+
},
|
|
96141
|
+
"deployment-branch-policy-wildcard": {
|
|
96142
|
+
"value": {
|
|
96143
|
+
"id": 364662,
|
|
96144
|
+
"node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjI=",
|
|
96145
|
+
"name": "release/*"
|
|
96146
|
+
}
|
|
96147
|
+
},
|
|
96148
|
+
"deployment-branch-policy-single-branch": {
|
|
96149
|
+
"value": {
|
|
96150
|
+
"id": 364663,
|
|
96151
|
+
"node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjM=",
|
|
96152
|
+
"name": "main"
|
|
96153
|
+
}
|
|
96154
|
+
},
|
|
95770
96155
|
"repo-events-items": {
|
|
95771
96156
|
"value": [
|
|
95772
96157
|
{
|
|
@@ -104759,11 +105144,20 @@
|
|
|
104759
105144
|
"name": "environment_name",
|
|
104760
105145
|
"in": "path",
|
|
104761
105146
|
"required": true,
|
|
104762
|
-
"description": "The name of the environment",
|
|
105147
|
+
"description": "The name of the environment.",
|
|
104763
105148
|
"schema": {
|
|
104764
105149
|
"type": "string"
|
|
104765
105150
|
}
|
|
104766
105151
|
},
|
|
105152
|
+
"branch-policy-id": {
|
|
105153
|
+
"name": "branch_policy_id",
|
|
105154
|
+
"in": "path",
|
|
105155
|
+
"required": true,
|
|
105156
|
+
"description": "The unique identifier of the branch policy.",
|
|
105157
|
+
"schema": {
|
|
105158
|
+
"type": "integer"
|
|
105159
|
+
}
|
|
105160
|
+
},
|
|
104767
105161
|
"invitation-id": {
|
|
104768
105162
|
"name": "invitation_id",
|
|
104769
105163
|
"description": "The unique identifier of the invitation.",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"openapi": "3.0.3",
|
|
3
3
|
"info": {
|
|
4
|
-
"version": "7.
|
|
4
|
+
"version": "7.1.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": {
|
|
@@ -84168,13 +84168,6 @@
|
|
|
84168
84168
|
"permission": {
|
|
84169
84169
|
"type": "string",
|
|
84170
84170
|
"description": "The permission to grant the collaborator. **Only valid on organization-owned repositories.**",
|
|
84171
|
-
"enum": [
|
|
84172
|
-
"pull",
|
|
84173
|
-
"push",
|
|
84174
|
-
"admin",
|
|
84175
|
-
"maintain",
|
|
84176
|
-
"triage"
|
|
84177
|
-
],
|
|
84178
84171
|
"default": "push"
|
|
84179
84172
|
}
|
|
84180
84173
|
}
|