Learn R Programming

devtoolbox (version 0.2.0)

get_gh_pr: Get pull request information from GitHub for the given time period.

Description

Get information on pull requests from the specified GitHub repository. This is a wrapper around the 'gh' package. Original code taken from https://github.com/jennybc/analyze-github-stuff-with-r/.

Usage

get_gh_pr(owner, repo, start_date = NULL, end_date = NULL)

Value

A data frame containing details of GitHub pull requests identified in the specified date range.

Arguments

owner

String specifying the owner of the repository.

repo

String specifying the name of the repo.

start_date

String specifying start date of reporting period to filter by, in the format YYYY-MM-DD. NULL by default, where no filters will be applied.

end_date

String specifying end date of reporting period to filter by, in the format YYYY-MM-DD. NULL by default, where no filters will be applied.

Examples

Run this code
# \donttest{
get_gh_pr(owner = "martinctc", repo = "rwa")
# }

Run the code above in your browser using DataLab