Pithub::Issues::Milestones - Github v3 Issue Milestones API
- •
- Create a milestone
POST /repos/:user/:repo/milestones
Examples:
my $m = Pithub::Issues::Milestones->new;
my $result = $m->create(
repo => 'Pithub',
user => 'plu',
data => {
description => 'String',
due_on => 'Time',
state => 'open or closed',
title => 'String'
}
);
- •
- Delete a milestone
DELETE /repos/:user/:repo/milestones/:id
Examples:
my $m = Pithub::Issues::Milestones->new;
my $result = $m->delete(
repo => 'Pithub',
user => 'plu',
milestone_id => 1,
);
- •
- Get a single milestone
GET /repos/:user/:repo/milestones/:id
Examples:
my $m = Pithub::Issues::Milestones->new;
my $result = $m->get(
repo => 'Pithub',
user => 'plu',
milestone_id => 1,
);
- •
- List milestones for an issue
GET /repos/:user/:repo/milestones
Examples:
my $m = Pithub::Issues::Milestones->new;
my $result = $m->list(
repo => 'Pithub',
user => 'plu',
);
- •
- Update a milestone
PATCH /repos/:user/:repo/milestones/:id
Examples:
my $m = Pithub::Issues::Milestones->new;
my $result = $m->update(
repo => 'Pithub',
user => 'plu',
data => {
description => 'String',
due_on => 'Time',
state => 'open or closed',
title => 'String'
}
);
Johannes Plunien <plu@cpan.org>
This software is copyright (c) 2011-2019 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.