build_pkg: Submits a build job for a package

Description Usage Arguments References

View source: R/build-pkg.R

Description

This function assumes you know what you're doing and expects a valid .build.yml in the package directory.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
build_pkg(package = ".", note = "New build", tags = c("package",
  "rstats"), read_access = NULL, write_access = NULL, execute = TRUE,
  secrets = TRUE, browse = FALSE, username = sourcehut_user(),
  pat = sourcehut_pat())

get_build_status(job_id, pat = sourcehut_pat())

get_build_manifest(job_id, pat = sourcehut_pat())

start_build(job_id, pat = sourcehut_pat())

Arguments

package

path to package (assumes current directory)

note

human-friendly description of this build (markdown, optional)

tags

character vector of strings that identify this build and can be used to navigate the dashboard. Each string must use only lowercase alphanumeric characters, or any of "-_."

read_access, write_access

character vector of users that have read or write access to the job.

execute

start build immediately? (Default: TRUE)

secrets

provide secrets to the build? (Default: TRUE)

browse

open browser to the builder URL? (Default: FALSE)

username

see sourcehut_user()

pat

see sourcehut_pat()

job_id

builds.sr.ht job id

References

https://man.sr.ht/builds.sr.ht/api.md


hrbrmstr/sourcehut documentation built on Nov. 4, 2019, 1:46 p.m.