You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"description": "The list of repository IDs to scope the user-to-server access token to. `repositories` may not be specified if `repository_ids` is specified.",
1001
+
"description": "The list of repository names to scope the user-to-server access token to. `repositories` may not be specified if `repository_ids` is specified.",
1002
1002
"type": "array",
1003
1003
"items": { "type": "string", "example": "rails" }
1004
1004
},
1005
1005
"repository_ids": {
1006
-
"description": "The list of repository names to scope the user-to-server access token to. `repository_ids` may not be specified if `repositories` is specified.",
1006
+
"description": "The list of repository IDs to scope the user-to-server access token to. `repository_ids` may not be specified if `repositories` is specified.",
1007
1007
"example": [1],
1008
1008
"type": "array",
1009
1009
"items": { "type": "integer" }
@@ -20794,52 +20794,14 @@
20794
20794
},
20795
20795
"x-octokit": {}
20796
20796
},
20797
-
"post": {
20798
-
"summary": "Create an environment",
20799
-
"description": "Create an environment for a repository. If an environment with the specified name already exists, the existing environment will be returned.\n\nThe created environment will not have any protection rules configured. To configure protection rules for the created environment, see \"[Set protection rules for an environment](#set-protection-rules-for-an-environment)\".\n\nYou must authenticate using an access token with the repo scope to use this endpoint.",
"summary": "Set protection rules for an environment",
20837
-
"description": "Set protection rules, such as required reviewers, for an environment. For more information about environment protection rules, see \"[Environments](/actions/reference/environments#environment-protection-rules).\"\n\n**Note:** Although you can use this operation to specify that only branches that match specified name patterns can deploy to this environment, you must use the UI to set the name patterns. For more information, see \"[Environments](/actions/reference/environments#deployment-branches).\"\n\nYou must authenticate using an access token with the repo scope to use this endpoint.",
20798
+
"summary": "Create or update an environment",
20799
+
"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:** Although you can use this operation to specify that only branches that match specified name patterns can deploy to this environment, you must use the UI to set the name patterns. For more information, see \"[Environments](/actions/reference/environments#deployment-branches).\"\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.",
"description": "The people or teams that may jobs that reference the environment. You can list up to six users or teams as reviewers. The reviewers must have at least read access to the repository. Only one of the required reviewers needs to approve the job for it to proceed.",
20820
+
"description": "The people or teams that may review jobs that reference the environment. You can list up to six users or teams as reviewers. The reviewers must have at least read access to the repository. Only one of the required reviewers needs to approve the job for it to proceed.",
20859
20821
"items": {
20860
20822
"type": "object",
20861
20823
"properties": {
@@ -20891,7 +20853,7 @@
20891
20853
}
20892
20854
},
20893
20855
"422": {
20894
-
"description": "Response when `protected_branches` and `custom_branch_policies` in `deployment_branch_policy` are set to the same value",
20856
+
"description": "Validation error when the environment name is invalid or when `protected_branches` and `custom_branch_policies` in `deployment_branch_policy` are set to the same value",
Copy file name to clipboardExpand all lines: src/generated/types.ts
+11-40Lines changed: 11 additions & 40 deletions
Original file line number
Diff line number
Diff line change
@@ -3056,21 +3056,15 @@ export interface paths {
3056
3056
/** Anyone 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. */
3057
3057
get: operations["repos/get-environment"];
3058
3058
/**
3059
-
* Set protection rules, such as required reviewers, for an environment. For more information about environment protection rules, see "[Environments](/actions/reference/environments#environment-protection-rules)."
3059
+
* 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)."
3060
3060
*
3061
3061
* **Note:** Although you can use this operation to specify that only branches that match specified name patterns can deploy to this environment, you must use the UI to set the name patterns. For more information, see "[Environments](/actions/reference/environments#deployment-branches)."
3062
3062
*
3063
-
* You must authenticate using an access token with the repo scope to use this endpoint.
* Create an environment for a repository. If an environment with the specified name already exists, the existing environment will be returned.
3068
-
*
3069
-
* The created environment will not have any protection rules configured. To configure protection rules for the created environment, see "[Set protection rules for an environment](#set-protection-rules-for-an-environment)".
3063
+
* **Note:** To create or update secrets for an environment, see "[Secrets](/rest/reference/actions#secrets)."
3070
3064
*
3071
3065
* You must authenticate using an access token with the repo scope to use this endpoint.
* Set protection rules, such as required reviewers, for an environment. For more information about environment protection rules, see "[Environments](/actions/reference/environments#environment-protection-rules)."
21916
+
* 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)."
21923
21917
*
21924
21918
* **Note:** Although you can use this operation to specify that only branches that match specified name patterns can deploy to this environment, you must use the UI to set the name patterns. For more information, see "[Environments](/actions/reference/environments#deployment-branches)."
21925
21919
*
21920
+
* **Note:** To create or update secrets for an environment, see "[Secrets](/rest/reference/actions#secrets)."
21921
+
*
21926
21922
* You must authenticate using an access token with the repo scope to use this endpoint.
/** Response when `protected_branches` and `custom_branch_policies` in `deployment_branch_policy` are set to the same value */
21940
+
/** Validation error when the environment name is invalid or when `protected_branches` and `custom_branch_policies` in `deployment_branch_policy` are set to the same value */
/** The people or teams that may jobs that reference the environment. You can list up to six users or teams as reviewers. The reviewers must have at least read access to the repository. Only one of the required reviewers needs to approve the job for it to proceed. */
21951
+
/** The people or teams that may review jobs that reference the environment. You can list up to six users or teams as reviewers. The reviewers must have at least read access to the repository. Only one of the required reviewers needs to approve the job for it to proceed. */
* Create an environment for a repository. If an environment with the specified name already exists, the existing environment will be returned.
21968
-
*
21969
-
* The created environment will not have any protection rules configured. To configure protection rules for the created environment, see "[Set protection rules for an environment](#set-protection-rules-for-an-environment)".
21970
-
*
21971
-
* You must authenticate using an access token with the repo scope to use this endpoint.
0 commit comments