view_projects: View GitHub projects

Description Usage Arguments Details Value Examples

View source: R/projects.R

Description

view_projects() summarises projects in a table with the properties as columns and a row for each project. view_project() returns a list of all properties for a single project. browse_project() opens the web page for the project in the default browser.

Usage

1
2
3
4
5
view_projects(repo, user, team, org, state = "open", n_max = 1000, ...)

view_project(project, repo, user, team, org, ...)

browse_project(project, repo, user, team, org, ...)

Arguments

repo

(string, optional) The repository specified in the format: owner/repo.

user

(string, optional) The login of the user.

team

(string or integer, optional) The team ID or name.

org

(string, optional) The name of the organization.

state

(string, optional) Indicates the state of the projects to return. Can be either "open", "closed", or "all". Default: "open".

n_max

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

...

Parameters passed to gh_page() or gh_request().

project

(integer or string) The number or name of the project.

Details

You can summarise all the projects associated with either a repository, user, team or organization, by supplying them as an input.

For more details see the GitHub API documentation:

Value

view_projects() returns a tibble of project properties. view_project() returns a list of properties for a single project. browse_project() opens the default browser on the project's page and returns the URL.

Project Properties:

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
## Not run: 

  # View a repository's projects
  view_projects("ChadGoymer/githapi")

  # View a user's projects
  view_projects(user = "ChadGoymer")

  # View an organization's projects
  view_projects(org = "HairyCoos")

  # View a team's projects
  view_projects(team = "HeadCoos", org = "HairyCoos")

  # View closed projects
  view_projects("ChadGoymer/githapi", state = "closed")

  # View all projects
  view_projects("ChadGoymer/githapi", state = "all")

  # View a specific repository project
  view_project("Prioritisation", repo = "ChadGoymer/githapi")

  # View a specific user project
  view_project("Test project", user = "ChadGoymer")

  # View a specific organization project
  view_project("Prioritisation", org = "HairyCoos")

  # View a specific team project
  view_project("Prioritisation", team = "HeadCoos", org = "HairyCoos")

  # Browse a specific repository project
  browse_project("Prioritisation", "ChadGoymer/githapi")

  # Browse a specific user project
  browse_project("Test project", user = "ChadGoymer")

  # Browse a specific organization project
  browse_project("Prioritisation", org = "HairyCoos")

  # Browse a specific team project
  browse_project("Prioritisation", team = "HeadCoos", org = "HairyCoos")


## End(Not run)

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