Description Usage Arguments Details Value Examples
This function updates a tag in the specified repository to point at a new commit. 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.
1 | update_tag(tag, ref, repo, force = FALSE, ...)
|
tag |
(string) The name of the tag. |
ref |
(string) Either a SHA, branch or tag used to identify the new commit. |
repo |
(string) The repository specified in the format: |
force |
(boolean, optional) Whether to force the update if it is not a
simple fast-forward. Default: |
... |
Parameters passed to |
For more details see the GitHub API documentation:
update_tag()
returns a list of the tag properties.
Tag Properties:
name: The name of the tag.
sha: The commit SHA the tag is pointing at.
html_url: The address of the tag's web page in GitHub.
zip_url: The address to download a zip file of the commit.
tar_url: The address to download a tar file of the commit.
1 2 3 4 5 6 7 8 9 10 | ## Not run:
update_tag(
tag = "new-tag",
ref = "6b7b5a090d47fd3ef495620513a3f80da2487b1d",
repo = "ChadGoymer/githapi"
)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.