Pull contributions from GitHub

pull_github(
  data = NULL,
  repo = NULL,
  owner = NULL,
  username = NULL,
  role = NULL,
  report_lines = FALSE,
  type = c("all", "add", "del"),
  .token = NULL
)

Arguments

data

a data.frame contains columns 'repo', 'owner', 'username' and 'role'. You can also pass them one by one to the following parameters.

repo

repository name.

owner

repository owner.

username

username to pull.

role

user role in this repository.

report_lines

if TRUE, report contributed lines.

type

'all' for the sum of number of additions and deletions, 'add' for the number of additions and 'del' for the number of deletions.

.token

Authentication token. See pull_github_limit().

Value

a `data.frame``

Examples

pull_github( repo = "UCSCXenaTools", owner = "ShixiangWang", username = "ShixiangWang", role = "developer" )
#> # A tibble: 1 x 2 #> role `ShixiangWang/UCSCXenaTools` #> <chr> <int> #> 1 developer 214