view_teams: View teams in an organization in GitHub

Description Usage Arguments Details Value Examples

View source: R/teams.R

Description

view_teams() summarises teams in a table with the properties as columns and a row for each team. view_team() returns a list of all properties for a single team. browse_team() opens the web page for the team in the default browser.

Usage

1
2
3
4
5
view_teams(org, parent_team, n_max = 1000, ...)

view_team(team, org, ...)

browse_team(team, org, ...)

Arguments

org

(string, optional) The login of the organization.

parent_team

(integer or string, optional) The ID or name of a team. If supplied, all the child teams will be returned.

n_max

(integer, optional) Maximum number to return. Default: 1000.

...

Parameters passed to gh_page() or gh_request().

team

(integer or string) The ID or name of the team.

Details

You can summarise all the teams within an organisation, that are children to a parent team or, if neither are supplied, the teams the authenticated user is a member of.

For more details see the GitHub API documentation:

Value

view_teams() returns a tibble of team properties. view_team() returns a list of properties for a single team. browse_team() opens the default browser on the team's page and returns the URL.

Team Properties:

The following are only returned using view_team():

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
## Not run: 

  # View teams authenticated user is a member of
  view_teams()

  # View teams in an organization
  view_teams("HairyCoos")

  # View a single team
  view_team("HeadCoos", "HairyCoos")

  # Browse a team's GitHub page
  browse_team("HeadCoos", "HairyCoos")


## End(Not run)

ChadGoymer/githapi documentation built on Oct. 22, 2021, 10:56 a.m.