NAME
Pithub::GitData::Commits - Github v3 Git Data Commits API
VERSION
version 0.01002
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', );
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.