delete_branch: Delete a branch from a repository

Description Usage Arguments Details Value Examples

View source: R/branches.R

Description

This function deletes a branch from a repository, as long as you have appropriate permissions. Care should be taken as it will not be recoverable.

Usage

1
delete_branch(branch, repo, ...)

Arguments

branch

(string) The name of the branch.

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

delete_branch() returns a TRUE if successfully deleted.

Examples

1
2
3
4
5
6
## Not run: 

  delete_branch(branch = "new-branch", repo = "ChadGoymer/githapi")


## End(Not run)

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