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
Copy file name to clipboardExpand all lines: src/generated/method-types.ts
+23-15Lines changed: 23 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -3000,6 +3000,8 @@ export type RestEndpointMethods = {
3000
3000
*
3001
3001
* To use this endpoint, you must be an owner or security manager for the organization, and you must use an access token with the `repo` scope or `security_events` scope.
3002
3002
*
3003
+
* For public repositories, you may instead use the `public_repo` scope.
3004
+
*
3003
3005
* GitHub Apps must have the `security_events` read permission to use this endpoint.
3004
3006
*/
3005
3007
listAlertsForOrg: {
@@ -4402,9 +4404,7 @@ export type RestEndpointMethods = {
4402
4404
defaults: RequestInterface["defaults"];
4403
4405
endpoint: EndpointInterface<{ url: string }>;
4404
4406
};
4405
-
/**
4406
-
* **Note**: This was previously `/gists/:gist_id/fork`.
@@ -4639,6 +4639,8 @@ export type RestEndpointMethods = {
4639
4639
* The tree creation API accepts nested entries. If you specify both a tree and a nested path modifying that tree, this endpoint will overwrite the contents of the tree with the new path contents, and create a new tree structure.
4640
4640
*
4641
4641
* If you use this endpoint to add, delete, or modify the file contents in a tree, you will need to commit the tree and then update a branch to point to the commit. For more information see "[Create a commit](https://docs.github.com/rest/reference/git#create-a-commit)" and "[Update a reference](https://docs.github.com/rest/reference/git#update-a-reference)."
4642
+
*
4643
+
* Returns an error if you try to delete a file that does not exist.
4642
4644
*/
4643
4645
createTree: {
4644
4646
(
@@ -7086,8 +7088,6 @@ export type RestEndpointMethods = {
7086
7088
*
7087
7089
* To open or update a pull request in a public repository, you must have write access to the head or the source branch. For organization-owned repositories, you must be a member of the organization that owns the repository to open or update a pull request.
7088
7090
*
7089
-
* You can create a new pull request.
7090
-
*
7091
7091
* This endpoint triggers [notifications](https://docs.github.com/en/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. See "[Secondary rate limits](https://docs.github.com/rest/overview/resources-in-the-rest-api#secondary-rate-limits)" and "[Dealing with secondary rate limits](https://docs.github.com/rest/guides/best-practices-for-integrators#dealing-with-rate-limits)" for details.
7092
7092
*/
7093
7093
create: {
@@ -7114,7 +7114,7 @@ export type RestEndpointMethods = {
7114
7114
/**
7115
7115
* This endpoint triggers [notifications](https://docs.github.com/en/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. See "[Secondary rate limits](https://docs.github.com/rest/overview/resources-in-the-rest-api#secondary-rate-limits)" and "[Dealing with secondary rate limits](https://docs.github.com/rest/guides/best-practices-for-integrators#dealing-with-secondary-rate-limits)" for details.
7116
7116
*
7117
-
* Pull request reviews created in the `PENDING` state do not include the `submitted_at` property in the response.
7117
+
* Pull request reviews created in the `PENDING` state are not submitted and therefore do not include the `submitted_at` property in the response. To create a pending review for a pull request, leave the `event` parameter blank. For more information about submitting a `PENDING` review, see "[Submit a review for a pull request](https://docs.github.com/rest/pulls#submit-a-review-for-a-pull-request)."
7118
7118
*
7119
7119
* **Note:** To comment on a specific line in a file, you need to first determine the _position_ of that line in the diff. The GitHub REST API v3 offers the `application/vnd.github.v3.diff` [media type](https://docs.github.com/rest/overview/media-types#commits-commit-comparison-and-pull-requests). To see a pull request diff, add this media type to the `Accept` header of a call to the [single pull request](https://docs.github.com/rest/reference/pulls#get-a-pull-request) endpoint.
7120
7120
*
@@ -7264,7 +7264,7 @@ export type RestEndpointMethods = {
7264
7264
endpoint: EndpointInterface<{ url: string }>;
7265
7265
};
7266
7266
/**
7267
-
* Lists the users or teams whose review is requested for a pull request. Once a requested reviewer submits a review, they are no longer considered a requested reviewer. Their review will instead be returned by the [List reviews for a pull request](https://docs.github.com/rest/pulls/reviews#list-reviews-for-a-pull-request) operation.
7267
+
* Gets the users or teams whose review is requested for a pull request. Once a requested reviewer submits a review, they are no longer considered a requested reviewer. Their review will instead be returned by the [List reviews for a pull request](https://docs.github.com/rest/pulls/reviews#list-reviews-for-a-pull-request) operation.
7268
7268
*/
7269
7269
listRequestedReviewers: {
7270
7270
(
@@ -7341,7 +7341,9 @@ export type RestEndpointMethods = {
7341
7341
defaults: RequestInterface["defaults"];
7342
7342
endpoint: EndpointInterface<{ url: string }>;
7343
7343
};
7344
-
7344
+
/**
7345
+
* Submits a pending review for a pull request. For more information about creating a pending review for a pull request, see "[Create a review for a pull request](https://docs.github.com/rest/pulls#create-a-review-for-a-pull-request)."
@@ -8175,11 +8177,11 @@ export type RestEndpointMethods = {
8175
8177
/**
8176
8178
* 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)."
8177
8179
*
8178
-
* **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)."
8180
+
* **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)."
8179
8181
*
8180
8182
* **Note:** To create or update secrets for an environment, see "[Secrets](/rest/reference/actions#secrets)."
8181
8183
*
8182
-
* You must authenticate using an access token with the repo scope to use this endpoint.
8184
+
* You 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.
8183
8185
*/
8184
8186
createOrUpdateEnvironment: {
8185
8187
(
@@ -8580,7 +8582,8 @@ export type RestEndpointMethods = {
8580
8582
* Gets a redirect URL to download a zip archive for a repository. If you omit `:ref`, the repository’s default branch (usually
8581
8583
* `master`) will be used. Please make sure your HTTP framework is configured to follow redirects or you will need to use
8582
8584
* the `Location` header to make a second `GET` request.
8583
-
* **Note**: For private repositories, these links are temporary and expire after five minutes.
8585
+
*
8586
+
* **Note**: For private repositories, these links are temporary and expire after five minutes. If the repository is empty, you will receive a 404 when you follow the redirect.
8584
8587
* @deprecated octokit.rest.repos.downloadArchive() has been renamed to octokit.rest.repos.downloadZipballArchive() (2020-09-17)
8585
8588
*/
8586
8589
downloadArchive: {
@@ -8611,7 +8614,8 @@ export type RestEndpointMethods = {
8611
8614
* Gets a redirect URL to download a zip archive for a repository. If you omit `:ref`, the repository’s default branch (usually
8612
8615
* `master`) will be used. Please make sure your HTTP framework is configured to follow redirects or you will need to use
8613
8616
* the `Location` header to make a second `GET` request.
8614
-
* **Note**: For private repositories, these links are temporary and expire after five minutes.
8617
+
*
8618
+
* **Note**: For private repositories, these links are temporary and expire after five minutes. If the repository is empty, you will receive a 404 when you follow the redirect.
8615
8619
*/
8616
8620
downloadZipballArchive: {
8617
8621
(
@@ -8707,7 +8711,7 @@ export type RestEndpointMethods = {
8707
8711
endpoint: EndpointInterface<{ url: string }>;
8708
8712
};
8709
8713
/**
8710
-
* Get all environments for a repository.
8714
+
* Lists the environments for a repository.
8711
8715
*
8712
8716
* 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.
8713
8717
*/
@@ -9051,7 +9055,11 @@ export type RestEndpointMethods = {
9051
9055
endpoint: EndpointInterface<{ url: string }>;
9052
9056
};
9053
9057
/**
9054
-
* 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.
9058
+
* **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)."
9059
+
*
9060
+
* Anyone with read access to the repository can use this endpoint. If the
9061
+
* repository is private, you must use an access token with the `repo` scope. GitHub
9062
+
* Apps must have the `actions:read` permission to use this endpoint.
9055
9063
*/
9056
9064
getEnvironment: {
9057
9065
(
@@ -10306,7 +10314,7 @@ export type RestEndpointMethods = {
10306
10314
/**
10307
10315
* Find users via various criteria. This method returns up to 100 results [per page](https://docs.github.com/rest/overview/resources-in-the-rest-api#pagination).
10308
10316
*
10309
-
* When searching for users, you can get text match metadata for the issue **login**, **email**, and **name** fields when you pass the `text-match` media type. For more details about highlighting search results, see [Text match metadata](https://docs.github.com/rest/reference/search#text-match-metadata). For more details about how to receive highlighted search results, see [Text match metadata](https://docs.github.com/rest/reference/search#text-match-metadata).
10317
+
* When searching for users, you can get text match metadata for the issue **login**, public **email**, and **name** fields when you pass the `text-match` media type. For more details about highlighting search results, see [Text match metadata](https://docs.github.com/rest/reference/search#text-match-metadata). For more details about how to receive highlighted search results, see [Text match metadata](https://docs.github.com/rest/reference/search#text-match-metadata).
10310
10318
*
10311
10319
* For example, if you're looking for a list of popular users, you might try this query:
0 commit comments