Pithub::Repos::Hooks(3pm) | User Contributed Perl Documentation | Pithub::Repos::Hooks(3pm) |
Pithub::Repos::Hooks - Github v3 Repo Hooks API
version 0.01040
POST /repos/:user/:repo/hooks
Examples:
my $hooks = Pithub::Repos::Hooks->new; my $result = $hooks->create( user => 'plu', repo => 'Pithub', data => { name => 'irc', active => 1, config => { server => 'irc.perl.org', port => 6667, room => 'pithub', }, }, );
DELETE /repos/:user/:repo/hooks/:id
Examples:
my $hooks = Pithub::Repos::Hooks->new; my $result = $hooks->delete( user => 'plu', repo => 'Pithub', hook_id => 5, );
GET /repos/:user/:repo/hooks/:id
Examples:
my $hooks = Pithub::Repos::Hooks->new; my $result = $hooks->get( user => 'plu', repo => 'Pithub', hook_id => 5, );
GET /repos/:user/:repo/hooks
Examples:
my $hooks = Pithub::Repos::Hooks->new; my $result = $hooks->tags( user => 'plu', repo => 'Pithub' );
POST /repos/:user/:repo/hooks/:id/test
Examples:
my $hooks = Pithub::Repos::Hooks->new; my $result = $hooks->test( user => 'plu', repo => 'Pithub', hook_id => 5, );
PATCH /repos/:user/:repo/hooks/:id
Examples:
my $hooks = Pithub::Repos::Hooks->new; my $result = $hooks->update( user => 'plu', repo => 'Pithub', hook_id => 5, data => { name => 'irc', active => 1, config => { server => 'irc.freenode.net', port => 6667, room => 'pithub', }, }, );
Active hooks can be configured to trigger for one or more events. The default event is push. The available events are:
Johannes Plunien <plu@cpan.org>
This software is copyright (c) 2011 by Johannes Plunien.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
2022-10-04 | perl v5.34.0 |