ga_jobs: GitHub jobs

ga_jobR Documentation

GitHub jobs

Description

GitHub jobs

Usage

ga_job(owner, repo = NULL, job_id, ...)

ga_job_logs(owner, repo = NULL, job_id, ...)

Arguments

owner

owner of repo/username

repo

repository name

job_id

identifier of job

...

additional arguments to pass to gh::gh()

Value

Answer from the API as a ga_response object, which is also a list. Failed requests will generate an R error. Requests that generate a raw response will return a raw vector.

Examples

## Not run: 
have_token = length(gh::gh_token()) > 0
  if (have_token) {
   job_id = "1475662285"
   job_out = ga_job("muschellij2", "pycwa", job_id)
   job_out2 = ga_job("muschellij2/pycwa", job_id = job_id)
   if (difftime(Sys.time(), as.POSIXct(job_out$completed_at), "days")<= 90) {
     job_log = ga_job_logs("muschellij2", "pycwa", job_id)
     job_log = ga_job_logs("muschellij2/pycwa", job_id = job_id)
    }
  }
 
## End(Not run)

muschellij2/aghast documentation built on Nov. 7, 2024, 9:36 p.m.