Skip to contents

This function checks if a GitHub repository has a release branch. If a release branch exists, it updates it with the latest DEV branch. If no release branch exists, it creates a new one from DEV

Usage

sync_release_branch(
  owner = getOption("pipfun.ghowner"),
  repo,
  ref_branch = "DEV",
  target_branch = NULL,
  verbose = FALSE
)

Arguments

owner

Character. The GitHub owner or organization name. Defaults to getOption("pipfun.ghowner")

repo

Character. The name of the repository.

ref_branch

Character. The branch from which the release branch should be created or updated. Defaults to "DEV"

release

TBC

identity

Character. The identity used for naming the new branch if created. One of getOption("pipfun.identities")

Value

Invisible TRUE if the process succeeds, otherwise an error message is displayed

Examples

if (FALSE) { # \dontrun{
sync_release_branch(owner = "PIP-Technical-Team", repo = "aux_gdp")
} # }