get_hooks: Get Hooks

Description Usage Arguments Details Value Examples

Description

Retrieve a list of Travis-CI web hooks.

Usage

1
2
3
4
5

Arguments

...

Additional arguments passed to travisHTTP.

hook

A numeric hook ID, or an object of class “travis_hook”.

Details

get_hooks retrieves a list of hooks (i.e., repositories that are linked to Travis CI). enable_hook and disable_hook enable and disable hooks, respectively.

Value

A list.

Examples

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

# get list of hooks
get_hooks()

# disable a hook
disable_hook("12345")

# enable a hook
enable_hook("1235")

## End(Not run)

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