JGithubHooks
class JGithubHooks extends JGithubObject
GitHub API Hooks class for the Joomla Platform.
Methods
object
create(
string $user,
string $repo,
string $name,
array $config,
array $events = array('push'),
boolean $active = true)
Method to create a hook on a repository.
object
delete(
string $user,
string $repo,
integer $id)
Method to delete a hook
object
edit(
string $user,
string $repo,
integer $id,
string $name,
array $config,
array $events = array('push'),
array $addEvents = array(),
array $removeEvents = array(),
boolean $active = true)
Method to edit a hook.
object
get(
string $user,
string $repo,
integer $id)
Method to get details about a single hook for the repository.
object
getList(
string $user,
string $repo,
integer $page,
integer $limit)
Method to list hooks for a repository.
object
test(
string $user,
string $repo,
integer $id)
Method to test a hook against the latest repository commit
Details
object
create(
string $user,
string $repo,
string $name,
array $config,
array $events = array('push'),
boolean $active = true)
Method to create a hook on a repository.
object
edit(
string $user,
string $repo,
integer $id,
string $name,
array $config,
array $events = array('push'),
array $addEvents = array(),
array $removeEvents = array(),
boolean $active = true)
Method to edit a hook.
object
get(
string $user,
string $repo,
integer $id)
Method to get details about a single hook for the repository.