view_branches: View branches within a repository

Description Usage Arguments Details Value Examples

View source: R/branches.R

Description

view_branches() summarises branches in a table with the properties as columns and a row for each branch in the repository. view_branch() returns a list of all properties for a single branch.

Usage

1
2
3
view_branches(repo, n_max = 1000, ...)

view_branch(branch, repo, ...)

Arguments

repo

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

n_max

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

...

Parameters passed to gh_page() or gh_request().

branch

(string) The name of the branch.

Details

For more details see the GitHub API documentation:

Value

view_branches() returns a tibble of branch properties. view_branch() returns a list of properties for a single branch.

Branch Properties:

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 

  # View all branches in a repository
  view_branches(repo = "ChadGoymer/githapi")

  # View a single branch
  view_branch(branch = "new-branch", repo = "ChadGoymer/githapi")


## End(Not run)

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