Description Usage Arguments Details Value Examples
view_memberships()
summarises the authenticate user's membership in
organizations in a table with the properties as columns and a row for each
organization. view_membership()
returns a list of all membership properties
for a user in a single organization or team.
1 2 3 | view_memberships(state, n_max = 1000, ...)
view_membership(user, org, team, ...)
|
state |
(string, optional) Filter results depending on the |
n_max |
(integer, optional) Maximum number to return. Default: |
... |
Parameters passed to |
user |
(string) The login of the user. |
org |
(string) The login of the organization. |
team |
(integer or string, optional) The ID or name of the team. |
Note: you can only view another user's membership in an organization or team if the authenticate user is also a member.
For more details see the GitHub API documentation:
https://docs.github.com/en/rest/reference/orgs#get-organization-membership-for-a-user
https://docs.github.com/en/rest/reference/teams#get-team-membership-for-a-user
view_memberships()
returns a tibble of membership properties.
view_membership()
returns a list of membership properties for a single
organization or team.
Membership Properties:
user: The user login.
organization: The organization login.
team: The team name (team membership only).
role: The role of the user - for organizations it is either "member"
or "admin"
, for teams it is either "member"
or "maintainer"
.
state: The state of the membership - either "active"
or "pending"
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | ## Not run:
# View membership of all organizations for the authenticated user
view_memberships()
# View only active memberships for the authenticated user
view_memberships(state = "active")
# View the membership of a user in an organization
view_membership("ChadGoymer", "HairyCoos")
# View the membership of a user in a team
view_membership(user = "ChadGoymer", org = "HairyCoos", team = "HeadCoos")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.