get_annotations: Job Annotations

Description Usage Arguments Details Value See Also Examples

Description

Retrieve and create job Travis CI annotations

Usage

1
2
3

Arguments

job

A numeric job ID, or an object of class “travis_job”.

...

Additional arguments passed to travisHTTP.

body

A list of arguments specifying the annotation. See API documentation for details.

Details

get_annotations retrieves any annotations attached to a Travis CI job. create_annotation creates a new annotation for a job. Note: As of October, 2015 support for annotations is considered “experimental”.

Value

A list.

See Also

get_job

get_job, get_logs

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
# authenticate based on Sys.setenv("GITHUB_TOKEN" = "sometoken")
auth_travis()

# get annotations for a job
get_annotations(12345)

# create a new annotation
create_annotations(12345, body = list(description = "job description", status = "passed"))

## End(Not run)

cloudyr/travisci documentation built on May 13, 2019, 8:22 p.m.