View source: R/biocDownloadStats.R
activitySince | R Documentation |
This function uses the gh
package to get a list of either issues, pull
requests, or GitHub commits since the specified date for a particular GitHub
repository. The repository must have both the username / organization and the
name, e.g., "Bioconductor/S4Vectors".
activitySince(
gh_repo,
activity = c("issues", "pulls", "commits"),
status = c("closed", "open", "all"),
Date,
issue_metadata = c("created_at", "number", "title"),
token = NULL
)
gh_repo |
character(1) The GitHub repository location including the username / organization and the repository name, e.g., "Bioconductor/S4Vectors" |
activity |
character(1) The type of repository activity to pull from the GitHub API. It can be one of "issues" (default), "pulls", or "commits". |
status |
character(1) One of 'closed', 'open', or 'all' corresponding to the issue state desired from the GitHub API (Default: "closed"). This argument is ignored for the "commits" activity report. |
Date |
character(1) The date cutoff from which to analyze closed issues in the YYYY-MM-DD or YYYY-MM-DDTHH:MM:SSZ format (ISO 8601). |
issue_metadata |
character() The metadata labels to extract from the
|
token |
character(1) For big requests, e.g., commit history, you may be prompted to use a GitHub Personal Access Token. Enter the token as plain text. |
The tibble
returned by the commits activity report contains five
columns:
'committer_date'
'commit' - hash
'parents' - hash of parent for merge commits
'author'
'message'
For information on other columns, refer to the GitHub API under repository
issues or pulls (e.g., /repos/:repo/issues
).
A tibble
with three columns corresponding to issue metadata (i.e.,
"created_at", "number", "title")
if (interactive()) {
activitySince("Bioconductor/S4Vectors", "issues", "closed", "2021-05-01")
activitySince("Bioconductor/S4Vectors", "issues", "open", "2022-05-01")
activitySince("Bioconductor/S4Vectors", "commits", Date = "2022-05-01")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.