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
+49-8
Original file line number
Diff line number
Diff line change
@@ -2105,7 +2105,7 @@ export type RestEndpointMethods = {
2105
2105
endpoint: EndpointInterface<{url: string}>;
2106
2106
};
2107
2107
/**
2108
-
* Lists all open code scanning alerts for the default branch (usually `master`) and protected branches in a repository. For private repos, you must use an access token with the `repo` scope. For public repos, you must use an access token with `public_repo` and `repo:security_events` scopes. GitHub Apps must have the `security_events` read permission to use this endpoint.
2108
+
* Lists all open code scanning alerts for the default branch (usually `main` or `master`). For private repos, you must use an access token with the `repo` scope. For public repos, you must use an access token with `public_repo` and `repo:security_events` scopes. GitHub Apps must have the `security_events` read permission to use this endpoint.
2109
2109
*/
2110
2110
listAlertsForRepo: {
2111
2111
(
@@ -2781,7 +2781,7 @@ export type RestEndpointMethods = {
2781
2781
};
2782
2782
interactions: {
2783
2783
/**
2784
-
* Shows which group of GitHub users can interact with this organization and when the restriction expires. If there are no restrictions, you will see an empty response.
2784
+
* Shows which type of GitHub user can interact with this organization and when the restriction expires. If there is no restrictions, you will see an empty response.
2785
2785
*/
2786
2786
getRestrictionsForOrg: {
2787
2787
(
@@ -2793,7 +2793,7 @@ export type RestEndpointMethods = {
2793
2793
endpoint: EndpointInterface<{url: string}>;
2794
2794
};
2795
2795
/**
2796
-
* Shows which group of GitHub users can interact with this repository and when the restriction expires. If there are no restrictions, you will see an empty response.
2796
+
* Shows which type of GitHub user can interact with this repository and when the restriction expires. If there are no restrictions, you will see an empty response.
2797
2797
*/
2798
2798
getRestrictionsForRepo: {
2799
2799
(
@@ -2804,6 +2804,18 @@ export type RestEndpointMethods = {
2804
2804
defaults: RequestInterface["defaults"];
2805
2805
endpoint: EndpointInterface<{url: string}>;
2806
2806
};
2807
+
/**
2808
+
* Shows which type of GitHub user can interact with your public repositories and when the restriction expires. If there are no restrictions, you will see an empty response.
* Removes all interaction restrictions from public repositories in the given organization. You must be an organization owner to remove restrictions.
2809
2821
*/
@@ -2817,7 +2829,7 @@ export type RestEndpointMethods = {
2817
2829
endpoint: EndpointInterface<{url: string}>;
2818
2830
};
2819
2831
/**
2820
-
* Removes all interaction restrictions from the given repository. You must have owner or admin access to remove restrictions.
2832
+
* Removes all interaction restrictions from the given repository. You must have owner or admin access to remove restrictions. If the interaction limit is set for the user or organization that owns this repository, you will receive a `409 Conflict` response and will not be able to use this endpoint to change the interaction limit for a single repository.
2821
2833
*/
2822
2834
removeRestrictionsForRepo: {
2823
2835
(
@@ -2829,7 +2841,19 @@ export type RestEndpointMethods = {
2829
2841
endpoint: EndpointInterface<{url: string}>;
2830
2842
};
2831
2843
/**
2832
-
* Temporarily restricts interactions to certain GitHub users in any public repository in the given organization. You must be an organization owner to set these restrictions.
2844
+
* Removes any interaction restrictions from your public repositories.
* Temporarily restricts interactions to a certain type of GitHub user in any public repository in the given organization. You must be an organization owner to set these restrictions. Setting the interaction limit at the organization level will overwrite any interaction limits that are set for individual repositories owned by the organization.
2833
2857
*/
2834
2858
setRestrictionsForOrg: {
2835
2859
(
@@ -2841,7 +2865,7 @@ export type RestEndpointMethods = {
2841
2865
endpoint: EndpointInterface<{url: string}>;
2842
2866
};
2843
2867
/**
2844
-
* Temporarily restricts interactions to certain GitHub users within the given repository. You must have owner or admin access to set restrictions.
2868
+
* Temporarily restricts interactions to a certain type of GitHub user within the given repository. You must have owner or admin access to set these restrictions. If an interaction limit is set for the user or organization that owns this repository, you will receive a `409 Conflict` response and will not be able to use this endpoint to change the interaction limit for a single repository.
2845
2869
*/
2846
2870
setRestrictionsForRepo: {
2847
2871
(
@@ -2852,6 +2876,18 @@ export type RestEndpointMethods = {
2852
2876
defaults: RequestInterface["defaults"];
2853
2877
endpoint: EndpointInterface<{url: string}>;
2854
2878
};
2879
+
/**
2880
+
* Temporarily restricts which type of GitHub user can interact with your public repositories. Setting the interaction limit at the user level will overwrite any interaction limits that are set for individual repositories owned by the user.
@@ -6023,7 +6059,12 @@ export type RestEndpointMethods = {
6023
6059
endpoint: EndpointInterface<{url: string}>;
6024
6060
};
6025
6061
/**
6026
-
* This endpoint will return all community profile metrics, including an overall health score, repository description, the presence of documentation, detected code of conduct, detected license, and the presence of ISSUE\_TEMPLATE, PULL\_REQUEST\_TEMPLATE, README, and CONTRIBUTING files.
6062
+
* This endpoint will return all community profile metrics, including an
6063
+
* overall health score, repository description, the presence of documentation, detected
6064
+
* code of conduct, detected license, and the presence of ISSUE\_TEMPLATE, PULL\_REQUEST\_TEMPLATE,
6065
+
* README, and CONTRIBUTING files.
6066
+
*
6067
+
* `content_reports_enabled` is only returned for organization-owned repositories.
6027
6068
*/
6028
6069
getCommunityProfileMetrics: {
6029
6070
(
@@ -7133,7 +7174,7 @@ export type RestEndpointMethods = {
* This query searches for the keyword `windows`, within any open issue that is labeled as `bug`. The search runs across repositories whose primary language is Python. The results are sorted by creation date in ascending order, whick means the oldest issues appear first in the search results.
7177
+
* This query searches for the keyword `windows`, within any open issue that is labeled as `bug`. The search runs across repositories whose primary language is Python. The results are sorted by creation date in ascending order, which means the oldest issues appear first in the search results.
7137
7178
*
7138
7179
* **Note:** For [user-to-server](https://docs.github.com/developers/apps/identifying-and-authorizing-users-for-github-apps#user-to-server-requests) GitHub App requests, you can't retrieve a combination of issues and pull requests in a single query. Requests that don't include the `is:issue` or `is:pull-request` qualifier will receive an HTTP `422 Unprocessable Entity` response. To get results for both issues and pull requests, you must send separate queries for issues and pull requests. For more information about the `is` qualifier, see "[Searching only issues or pull requests](https://docs.github.com/github/searching-for-information-on-github/searching-issues-and-pull-requests#search-only-issues-or-pull-requests)."
0 commit comments