github_set_org_membership
Add a user to a GitHub organization or update their role. Sends an invitation if the user is not yet a member, otherwise updates their role between member and admin.
Instructions
Add a user to the organization or update their role.
If the user is not yet a member, GitHub sends an invitation (state "pending");
if they already are a member, their role is updated.
Args:
username: The GitHub handle of the user to add or update.
role: Role to assign — "member" or "admin" (default: "member").
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | No | member | |
| username | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |