The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Pithub::GitData::Commits

VERSION

version 0.01000

METHODS

create

  • Create a Commit

        POST /repos/:user/:repo/git/commits

Examples:

    $result = $p->git_data->commits->create(
        user => 'plu',
        repo => 'Pithub',
        data => {
            author => {
                date  => '2008-07-09T16:13:30+12:00',
                email => 'schacon@gmail.com',
                name  => 'Scott Chacon',
            },
            message => 'my commit message',
            parents => ['7d1b31e74ee336d15cbd21741bc88a537ed063a0'],
            tree    => '827efc6d56897b048c772eb4087f854f46256132',
        }
    );

get

  • Get a Commit

        GET /repos/:user/:repo/git/commits/:sha

Examples:

    $result = $p->git_data->commits->get(
        user => 'plu',
        repo => 'Pithub',
        sha  => 'df21b2660fb6',
    );