NAME

Pithub::Issues - Github v3 Issues API

VERSION

version 0.01003

METHODS

create

  • Create an issue

    POST /repos/:user/:repo/issues

    Examples:

    $result = $p->issues->create(
        user => 'plu',
        repo => 'Pithub',
        data => {
            assignee  => 'octocat',
            body      => "I'm having a problem with this.",
            labels    => [ 'Label1', 'Label2' ],
            milestone => 1,
            title     => 'Found a bug'
        }
    );

get

  • Get a single issue

    GET /repos/:user/:repo/issues/:id

    Examples:

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

list

  • List issues for a repository

    GET /repos/:user/:repo/issues

    Examples:

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

update

  • Edit an issue

    PATCH /repos/:user/:repo/issues/:id

    Examples:

    $result = $p->issues->update(
        user     => 'plu',
        repo     => 'Pithub',
        issue_id => 1,
        data     => {
            assignee  => 'octocat',
            body      => "I'm having a problem with this.",
            labels    => [ 'Label1', 'Label2' ],
            milestone => 1,
            state     => 'open',
            title     => 'Found a bug'
        }
    );

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.