compare_files: View file changes made between two commits

Description Usage Arguments Details Value Examples

Description

compare_files() summarises the file changes made between two commits in a table with the properties as columns and a row for each file. 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_files() returns a tibble of file properties.

File Properties:

Examples

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

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


## End(Not run)

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