diff --git a/docs/ghe-32.md b/docs/ghe-32.md index f4c2d6d1..ed6c27d1 100644 --- a/docs/ghe-32.md +++ b/docs/ghe-32.md @@ -642,7 +642,7 @@ octokit.repos.getWebhookConfigForRepo({owner, repo, hook_id}); octokit.repos.getWebhookDelivery({owner, repo, hook_id, delivery_id}); octokit.repos.listBranches({owner, repo, protected, per_page, page}); octokit.repos.listBranchesForHeadCommit({owner, repo, commit_sha}); -octokit.repos.listCollaborators({owner, repo, affiliation, per_page, page}); +octokit.repos.listCollaborators({owner, repo, affiliation, permission, per_page, page}); octokit.repos.listCommentsForCommit({owner, repo, commit_sha, per_page, page}); octokit.repos.listCommitCommentsForRepo({owner, repo, per_page, page}); octokit.repos.listCommitStatusesForRef({owner, repo, ref, per_page, page}); diff --git a/docs/ghe-33.md b/docs/ghe-33.md index 08d08244..6e3af912 100644 --- a/docs/ghe-33.md +++ b/docs/ghe-33.md @@ -650,7 +650,7 @@ octokit.repos.getWebhookDelivery({owner, repo, hook_id, delivery_id}); octokit.repos.listAutolinks({owner, repo, page}); octokit.repos.listBranches({owner, repo, protected, per_page, page}); octokit.repos.listBranchesForHeadCommit({owner, repo, commit_sha}); -octokit.repos.listCollaborators({owner, repo, affiliation, per_page, page}); +octokit.repos.listCollaborators({owner, repo, affiliation, permission, per_page, page}); octokit.repos.listCommentsForCommit({owner, repo, commit_sha, per_page, page}); octokit.repos.listCommitCommentsForRepo({owner, repo, per_page, page}); octokit.repos.listCommitStatusesForRef({owner, repo, ref, per_page, page}); diff --git a/docs/ghe-34.md b/docs/ghe-34.md index 916d6355..dc737be3 100644 --- a/docs/ghe-34.md +++ b/docs/ghe-34.md @@ -709,7 +709,7 @@ octokit.repos.listAutolinks({owner, repo, page}); octokit.repos.listBranches({owner, repo, protected, per_page, page}); octokit.repos.listBranchesForHeadCommit({owner, repo, commit_sha}); octokit.repos.listCacheInfo({owner, repo, per_page, page}); -octokit.repos.listCollaborators({owner, repo, affiliation, per_page, page}); +octokit.repos.listCollaborators({owner, repo, affiliation, permission, per_page, page}); octokit.repos.listCommentsForCommit({owner, repo, commit_sha, per_page, page}); octokit.repos.listCommitCommentsForRepo({owner, repo, per_page, page}); octokit.repos.listCommitStatusesForRef({owner, repo, ref, per_page, page}); diff --git a/docs/ghe-35.md b/docs/ghe-35.md index f22e200a..c1f118ed 100644 --- a/docs/ghe-35.md +++ b/docs/ghe-35.md @@ -730,7 +730,7 @@ octokit.repos.listAutolinks({owner, repo, page}); octokit.repos.listBranches({owner, repo, protected, per_page, page}); octokit.repos.listBranchesForHeadCommit({owner, repo, commit_sha}); octokit.repos.listCacheInfo({owner, repo, per_page, page}); -octokit.repos.listCollaborators({owner, repo, affiliation, per_page, page}); +octokit.repos.listCollaborators({owner, repo, affiliation, permission, per_page, page}); octokit.repos.listCommentsForCommit({owner, repo, commit_sha, per_page, page}); octokit.repos.listCommitCommentsForRepo({owner, repo, per_page, page}); octokit.repos.listCommitStatusesForRef({owner, repo, ref, per_page, page}); diff --git a/docs/ghe-36.md b/docs/ghe-36.md index 8516e39e..660c0ff5 100644 --- a/docs/ghe-36.md +++ b/docs/ghe-36.md @@ -735,7 +735,7 @@ octokit.repos.listAutolinks({owner, repo, page}); octokit.repos.listBranches({owner, repo, protected, per_page, page}); octokit.repos.listBranchesForHeadCommit({owner, repo, commit_sha}); octokit.repos.listCacheInfo({owner, repo, per_page, page}); -octokit.repos.listCollaborators({owner, repo, affiliation, per_page, page}); +octokit.repos.listCollaborators({owner, repo, affiliation, permission, per_page, page}); octokit.repos.listCommentsForCommit({owner, repo, commit_sha, per_page, page}); octokit.repos.listCommitCommentsForRepo({owner, repo, per_page, page}); octokit.repos.listCommitStatusesForRef({owner, repo, ref, per_page, page}); diff --git a/scripts/update-endpoints/generated/ghe32-endpoints.json b/scripts/update-endpoints/generated/ghe32-endpoints.json index ef2a4c92..d3c909aa 100644 --- a/scripts/update-endpoints/generated/ghe32-endpoints.json +++ b/scripts/update-endpoints/generated/ghe32-endpoints.json @@ -34341,7 +34341,7 @@ "url": "/repos/{owner}/{repo}/contents/{path}", "isDeprecated": false, "deprecationDate": null, - "description": "Creates a new file or replaces an existing file in a repository.", + "description": "Creates a new file or replaces an existing file in a repository. You must authenticate using an access token with the `workflow` scope to use this endpoint.", "documentationUrl": "https://docs.github.com/enterprise-server@3.2/rest/reference/repos#create-or-update-file-contents", "previews": [], "headers": [], @@ -39421,6 +39421,19 @@ "alias": null, "deprecated": null }, + { + "name": "permission", + "description": "Filter collaborators by the permissions they have on the repository. If not specified, all collaborators will be returned.", + "in": "QUERY", + "type": "string", + "required": false, + "enum": ["pull", "triage", "push", "maintain", "admin"], + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + }, { "name": "per_page", "description": "The number of results per page (max 100).", @@ -41673,7 +41686,7 @@ "url": "/repos/{owner}/{repo}/hooks", "isDeprecated": false, "deprecationDate": null, - "description": "", + "description": "Lists webhooks for a repository. `last response` may return null if there have not been any deliveries within 30 days.", "documentationUrl": "https://docs.github.com/enterprise-server@3.2/rest/webhooks/repos#list-repository-webhooks", "previews": [], "headers": [], diff --git a/scripts/update-endpoints/generated/ghe33-endpoints.json b/scripts/update-endpoints/generated/ghe33-endpoints.json index 29714f91..65040c65 100644 --- a/scripts/update-endpoints/generated/ghe33-endpoints.json +++ b/scripts/update-endpoints/generated/ghe33-endpoints.json @@ -34518,7 +34518,7 @@ "url": "/repos/{owner}/{repo}/contents/{path}", "isDeprecated": false, "deprecationDate": null, - "description": "Creates a new file or replaces an existing file in a repository.", + "description": "Creates a new file or replaces an existing file in a repository. You must authenticate using an access token with the `workflow` scope to use this endpoint.", "documentationUrl": "https://docs.github.com/enterprise-server@3.3/rest/reference/repos#create-or-update-file-contents", "previews": [], "headers": [], @@ -39998,6 +39998,19 @@ "alias": null, "deprecated": null }, + { + "name": "permission", + "description": "Filter collaborators by the permissions they have on the repository. If not specified, all collaborators will be returned.", + "in": "QUERY", + "type": "string", + "required": false, + "enum": ["pull", "triage", "push", "maintain", "admin"], + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + }, { "name": "per_page", "description": "The number of results per page (max 100).", @@ -42250,7 +42263,7 @@ "url": "/repos/{owner}/{repo}/hooks", "isDeprecated": false, "deprecationDate": null, - "description": "", + "description": "Lists webhooks for a repository. `last response` may return null if there have not been any deliveries within 30 days.", "documentationUrl": "https://docs.github.com/enterprise-server@3.3/rest/webhooks/repos#list-repository-webhooks", "previews": [], "headers": [], diff --git a/scripts/update-endpoints/generated/ghe34-endpoints.json b/scripts/update-endpoints/generated/ghe34-endpoints.json index 28402380..6737fe82 100644 --- a/scripts/update-endpoints/generated/ghe34-endpoints.json +++ b/scripts/update-endpoints/generated/ghe34-endpoints.json @@ -36912,7 +36912,7 @@ "url": "/repos/{owner}/{repo}/contents/{path}", "isDeprecated": false, "deprecationDate": null, - "description": "Creates a new file or replaces an existing file in a repository.", + "description": "Creates a new file or replaces an existing file in a repository. You must authenticate using an access token with the `workflow` scope to use this endpoint.", "documentationUrl": "https://docs.github.com/enterprise-server@3.4/rest/reference/repos#create-or-update-file-contents", "previews": [], "headers": [], @@ -42473,6 +42473,19 @@ "alias": null, "deprecated": null }, + { + "name": "permission", + "description": "Filter collaborators by the permissions they have on the repository. If not specified, all collaborators will be returned.", + "in": "QUERY", + "type": "string", + "required": false, + "enum": ["pull", "triage", "push", "maintain", "admin"], + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + }, { "name": "per_page", "description": "The number of results per page (max 100).", @@ -44725,7 +44738,7 @@ "url": "/repos/{owner}/{repo}/hooks", "isDeprecated": false, "deprecationDate": null, - "description": "", + "description": "Lists webhooks for a repository. `last response` may return null if there have not been any deliveries within 30 days.", "documentationUrl": "https://docs.github.com/enterprise-server@3.4/rest/webhooks/repos#list-repository-webhooks", "previews": [], "headers": [], diff --git a/scripts/update-endpoints/generated/ghe35-endpoints.json b/scripts/update-endpoints/generated/ghe35-endpoints.json index 1713d667..1d92f092 100644 --- a/scripts/update-endpoints/generated/ghe35-endpoints.json +++ b/scripts/update-endpoints/generated/ghe35-endpoints.json @@ -38129,7 +38129,7 @@ "url": "/repos/{owner}/{repo}/contents/{path}", "isDeprecated": false, "deprecationDate": null, - "description": "Creates a new file or replaces an existing file in a repository.", + "description": "Creates a new file or replaces an existing file in a repository. You must authenticate using an access token with the `workflow` scope to use this endpoint.", "documentationUrl": "https://docs.github.com/enterprise-server@3.5/rest/reference/repos#create-or-update-file-contents", "previews": [], "headers": [], @@ -43814,6 +43814,19 @@ "alias": null, "deprecated": null }, + { + "name": "permission", + "description": "Filter collaborators by the permissions they have on the repository. If not specified, all collaborators will be returned.", + "in": "QUERY", + "type": "string", + "required": false, + "enum": ["pull", "triage", "push", "maintain", "admin"], + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + }, { "name": "per_page", "description": "The number of results per page (max 100).", @@ -46117,7 +46130,7 @@ "url": "/repos/{owner}/{repo}/hooks", "isDeprecated": false, "deprecationDate": null, - "description": "", + "description": "Lists webhooks for a repository. `last response` may return null if there have not been any deliveries within 30 days.", "documentationUrl": "https://docs.github.com/enterprise-server@3.5/rest/webhooks/repos#list-repository-webhooks", "previews": [], "headers": [], diff --git a/scripts/update-endpoints/generated/ghe36-endpoints.json b/scripts/update-endpoints/generated/ghe36-endpoints.json index 9bd11d42..fddb36a8 100644 --- a/scripts/update-endpoints/generated/ghe36-endpoints.json +++ b/scripts/update-endpoints/generated/ghe36-endpoints.json @@ -38502,7 +38502,7 @@ "url": "/repos/{owner}/{repo}/contents/{path}", "isDeprecated": false, "deprecationDate": null, - "description": "Creates a new file or replaces an existing file in a repository.", + "description": "Creates a new file or replaces an existing file in a repository. You must authenticate using an access token with the `workflow` scope to use this endpoint.", "documentationUrl": "https://docs.github.com/enterprise-server@3.6/rest/reference/repos#create-or-update-file-contents", "previews": [], "headers": [], @@ -44187,6 +44187,19 @@ "alias": null, "deprecated": null }, + { + "name": "permission", + "description": "Filter collaborators by the permissions they have on the repository. If not specified, all collaborators will be returned.", + "in": "QUERY", + "type": "string", + "required": false, + "enum": ["pull", "triage", "push", "maintain", "admin"], + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + }, { "name": "per_page", "description": "The number of results per page (max 100).", @@ -46490,7 +46503,7 @@ "url": "/repos/{owner}/{repo}/hooks", "isDeprecated": false, "deprecationDate": null, - "description": "", + "description": "Lists webhooks for a repository. `last response` may return null if there have not been any deliveries within 30 days.", "documentationUrl": "https://docs.github.com/enterprise-server@3.6/rest/webhooks/repos#list-repository-webhooks", "previews": [], "headers": [],