create_tag: Create a tag in a repository

Description Usage Arguments Details Value Examples

View source: R/tags.R

Description

This function creates a new tag in the specified repository in GitHub. It must be pointed at a commit by providing a Git reference, which can be either a SHA, branch or tag. For a branch, the head commit is used.

Usage

1
create_tag(name, ref, repo, ...)

Arguments

name

(string) The name of the tag.

ref

(string) Either a SHA, branch or tag used to identify the 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

create_tag() returns a list of the tag's properties.

Tag Properties:

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 

  create_tag(
    name = "new-tag",
    ref  = "main",
    repo = "ChadGoymer/githapi"
  )


## End(Not run)

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