compare_commits: View commits made between two commits

Description Usage Arguments Details Value Examples

View source: R/commits.R

Description

compare_commits() summarises the commits made between two commits. It returns a list of statistics along with a table of the commits with the properties as columns and a row for each commit. The base commit must be in the history of the head commit.

Usage

1

Arguments

base

(string) Either a SHA, branch or tag used to identify the base commit.

head

(string) Either a SHA, branch or tag used to identify the head commit.

repo

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

...

Parameters passed to gh_request().

Details

For more details see the GitHub API documentation:

Value

compare_commits() returns a list of comparison properties.

Comparison Properties:

Commit Properties:

Examples

1
2
3
4
5
6
7
## Not run: 

  # View the changes made between the current main branch and a release
  compare_commits("main", "0.8.7", "ChadGoymer/githapi")


## End(Not run)

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