Pithub::Issues::Labels(3pm) | User Contributed Perl Documentation | Pithub::Issues::Labels(3pm) |
Pithub::Issues::Labels - Github v3 Issue Labels API
version 0.01034
POST /repos/:user/:repo/issues/:id/labels
Examples:
my $l = Pithub::Issues::Labels->new; my $result = $l->add( repo => 'Pithub', user => 'plu', issue_id => 1, data => ['Label1', 'Label2'], );
POST /repos/:user/:repo/labels
Examples:
my $l = Pithub::Issues::Labels->new; my $result = $l->create( repo => 'Pithub', user => 'plu', data => { color => 'FFFFFF', name => 'some label', } );
DELETE /repos/:user/:repo/labels/:id
Examples:
my $l = Pithub::Issues::Labels->new; my $result = $l->delete( repo => 'Pithub', user => 'plu', label => 1, );
GET /repos/:user/:repo/labels/:id
Examples:
my $l = Pithub::Issues::Labels->new; my $result = $l->get( repo => 'Pithub', user => 'plu', label => 1, );
GET /repos/:user/:repo/labels
Examples:
my $l = Pithub::Issues::Labels->new; my $result = $l->list( repo => 'Pithub', user => 'plu' );
GET /repos/:user/:repo/issues/:id/labels
Examples:
my $l = Pithub::Issues::Labels->new; my $result = $l->list( repo => 'Pithub', user => 'plu', issue_id => 1, );
GET /repos/:user/:repo/milestones/:id/labels
Examples:
my $l = Pithub::Issues::Labels->new; my $result = $l->get( repo => 'Pithub', user => 'plu', milestone_id => 1 );
DELETE /repos/:user/:repo/issues/:id/labels/:id
Examples:
my $l = Pithub::Issues::Labels->new; my $result = $l->delete( repo => 'Pithub', user => 'plu', issue_id => 1, label => 1, );
DELETE /repos/:user/:repo/issues/:id/labels
Examples:
my $l = Pithub::Issues::Labels->new; my $result = $l->delete( repo => 'Pithub', user => 'plu', issue_id => 1, );
PUT /repos/:user/:repo/issues/:id/labels
Examples:
my $l = Pithub::Issues::Labels->new; my $result = $l->replace( repo => 'Pithub', user => 'plu', issue_id => 1, data => [qw(label3 label4)], );
PATCH /repos/:user/:repo/labels/:id
Examples:
my $l = Pithub::Issues::Labels->new; my $result = $l->update( repo => 'Pithub', user => 'plu', label => 1, data => { color => 'FFFFFF', name => 'API', } );
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.
2018-03-17 | perl v5.26.1 |