Skip to contents

Protect 'main' and 'production' from push on server

Usage

protect_branches(project_id, unprotect = FALSE)

Arguments

project_id

project_id

unprotect

Logical. Whether to unprotect branches or not.

Value

Side effect: Branches protected from push on server.

Examples

if (FALSE) {
protect_branches(
  project_id = project_id
)
# unprotect if wanted
# protect_branches(project_id, unprotect = TRUE)
}