Skip to content

Commit

Permalink
feat: maintain and triage user permissions in orgs (#30)
Browse files Browse the repository at this point in the history
Co-authored-by: Octokit Bot <[email protected]>
  • Loading branch information
github-actions[bot] and octokitbot authored Apr 7, 2020
1 parent 47bd6ef commit 713c036
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
8 changes: 4 additions & 4 deletions scripts/update-endpoints/generated/endpoints.json
Original file line number Diff line number Diff line change
Expand Up @@ -6925,8 +6925,8 @@
"alias": null,
"allowNull": false,
"deprecated": null,
"description": "The permission to grant the team on this repository. Can be one of: \n\\* `pull` - team members can pull, but not push to or administer this repository. \n\\* `push` - team members can pull and push, but not administer this repository. \n\\* `admin` - team members can pull, push and administer this repository. \n \nIf no permission is specified, the team's `permission` attribute will be used to determine what permission to grant the team on this repository.",
"enum": ["pull", "push", "admin"],
"description": "The permission to grant the team on this repository. Can be one of: \n\\* `pull` - team members can pull, but not push to or administer this repository. \n\\* `push` - team members can pull and push, but not administer this repository. \n\\* `admin` - team members can pull, push and administer this repository. \n\\* `maintain` - team members can manage the repository without access to sensitive or destructive actions. Recommended for project managers. Only applies to repositories owned by organizations. \n\\* `triage` - team members can proactively manage issues and pull requests without write access. Recommended for contributors who triage a repository. Only applies to repositories owned by organizations. \n \nIf no permission is specified, the team's `permission` attribute will be used to determine what permission to grant the team on this repository.",
"enum": ["pull", "push", "admin", "maintain", "triage"],
"name": "permission",
"type": "string",
"required": false
Expand Down Expand Up @@ -17224,8 +17224,8 @@
"alias": null,
"allowNull": false,
"deprecated": null,
"description": "The permissions that the associated user will have on the repository. Valid values are `read`, `write`, and `admin`.",
"enum": ["read", "write", "admin"],
"description": "The permissions that the associated user will have on the repository. Valid values are `read`, `write`, `maintain`, `triage`, and `admin`.",
"enum": ["read", "write", "maintain", "triage", "admin"],
"name": "permissions",
"type": "string",
"required": false
Expand Down
8 changes: 5 additions & 3 deletions src/generated/Endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6159,10 +6159,12 @@ type TeamsAddOrUpdateRepoInOrgEndpoint = {
* \* `pull` - team members can pull, but not push to or administer this repository.
* \* `push` - team members can pull and push, but not administer this repository.
* \* `admin` - team members can pull, push and administer this repository.
* \* `maintain` - team members can manage the repository without access to sensitive or destructive actions. Recommended for project managers. Only applies to repositories owned by organizations.
* \* `triage` - team members can proactively manage issues and pull requests without write access. Recommended for contributors who triage a repository. Only applies to repositories owned by organizations.
*
* If no permission is specified, the team's `permission` attribute will be used to determine what permission to grant the team on this repository.
*/
permission?: "pull" | "push" | "admin";
permission?: "pull" | "push" | "admin" | "maintain" | "triage";
};
type TeamsAddOrUpdateRepoInOrgRequestOptions = {
method: "PUT";
Expand Down Expand Up @@ -10772,9 +10774,9 @@ type ReposUpdateInvitationEndpoint = {
*/
invitation_id: number;
/**
* The permissions that the associated user will have on the repository. Valid values are `read`, `write`, and `admin`.
* The permissions that the associated user will have on the repository. Valid values are `read`, `write`, `maintain`, `triage`, and `admin`.
*/
permissions?: "read" | "write" | "admin";
permissions?: "read" | "write" | "maintain" | "triage" | "admin";
};
type ReposUpdateInvitationRequestOptions = {
method: "PATCH";
Expand Down

0 comments on commit 713c036

Please sign in to comment.