upload_blobs: Upload blobs (files).

Description Usage Arguments Details Value

View source: R/git-blobs.R

Description

This function uploads blobs from the specified file paths into a repository in GitHub.

Usage

1
2
3
4
5
6
7
upload_blobs(
  paths,
  repo,
  token = getOption("github.token"),
  api = getOption("github.api"),
  ...
)

Arguments

paths

(character) The paths to the files.

repo

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

token

(string, optional) The personal access token for GitHub authorisation. Default: value stored in the environment variable GITHUB_TOKEN (or GITHUB_PAT) or in the R option "github.token".

api

(string, optional) The URL of GitHub's API. Default: the value stored in the environment variable GITHUB_API or in the R option "github.api".

...

Parameters passed to gh_request().

Details

https://developer.github.com/v3/git/blobs/#create-a-blob

Value

A tibble describing the blobs, with the following columns (see GitHub's documentation for more details):


ChadGoymer/githapi documentation built on March 28, 2020, 11:36 p.m.