NAME

Pithub::Issues::Milestones - Github v3 Issue Milestones API

VERSION

version 0.01001

METHODS

create

  • Create a milestone

    POST /repos/:user/:repo/milestones

Examples:

$result = $p->issues->milestones->create(
    repo => 'Pithub',
    user => 'plu',
    data => {
        description => 'String',
        due_on      => 'Time',
        state       => 'open or closed',
        title       => 'String'
    }
);

delete

  • Delete a milestone

    DELETE /repos/:user/:repo/milestones/:id

Examples:

$result = $p->issues->milestones->delete(
    repo => 'Pithub',
    user => 'plu',
    milestone_id => 1,
);

get

  • Get a single milestone

    GET /repos/:user/:repo/milestones/:id

Examples:

$result = $p->issues->milestones->get(
    repo => 'Pithub',
    user => 'plu',
    milestone_id => 1,
);

list

  • List milestones for an issue

    GET /repos/:user/:repo/milestones

Examples:

$result = $p->issues->milestones->list(
    repo => 'Pithub',
    user => 'plu',
);

update

  • Update a milestone

    PATCH /repos/:user/:repo/milestones/:id

Examples:

$result = $p->issues->milestones->update(
    repo => 'Pithub',
    user => 'plu',
    data => {
        description => 'String',
        due_on      => 'Time',
        state       => 'open or closed',
        title       => 'String'
    }
);

AUTHOR

Johannes Plunien <plu@cpan.org>

COPYRIGHT AND LICENSE

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.