Pithub::Repos::Commits(3pm) | User Contributed Perl Documentation | Pithub::Repos::Commits(3pm) |
Pithub::Repos::Commits - Github v3 Repo Commits API
version 0.01034
GET /repos/:user/:repo/compare/:base...:head
Examples:
my $c = Pithub::Repos::Commits->new; my $result = $c->compare( user => 'plu', repo => 'Pithub', base => 'v0.01008', head => ' master ', );
POST /repos/:user/:repo/commits/:sha/comments
Examples:
my $c = Pithub::Repos::Commits->new; my $result = $c->create_comment( user => 'plu', repo => 'Pithub', sha => 'df21b2660fb6', data => { body => 'some comment' }, );
DELETE /repos/:user/:repo/comments/:id
Examples:
my $c = Pithub::Repos::Commits->new; my $result = $c->delete_comment( user => 'plu', repo => 'Pithub', comment_id => 1, );
GET /repos/:user/:repo/commits/:sha
Examples:
my $c = Pithub::Repos::Commits->new; my $result = $c->get( user => 'plu', repo => 'Pithub', sha => 'df21b2660fb6', );
GET /repos/:user/:repo/comments/:id
Examples:
my $c = Pithub::Repos::Commits->new; my $result = $c->get_comment( user => 'plu', repo => 'Pithub', comment_id => 1, );
GET /repos/:user/:repo/commits
Examples:
my $c = Pithub::Repos::Commits->new; my $result = $c->list( user => 'plu', repo => 'Pithub', );
Commit Comments leverage these custom mime types. You can read more about the use of mimes types in the API here. See also: <http://developer.github.com/v3/mimes/>.
GET /repos/:user/:repo/comments
Examples:
my $c = Pithub::Repos::Commits->new; my $result = $c->list_comments( user => 'plu', repo => 'Pithub', );
GET /repos/:user/:repo/commits/:sha/comments
Examples:
my $c = Pithub::Repos::Commits->new; my $result = $c->list_comments( user => 'plu', repo => 'Pithub', sha => 'df21b2660fb6', );
PATCH /repos/:user/:repo/comments/:id
Examples:
my $c = Pithub::Repos::Commits->new; my $result = $c->update_comment( user => 'plu', repo => 'Pithub', comment_id => 1, data => { body => 'updated comment' }, );
Johannes Plunien <plu@cpan.org>
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.
2018-03-17 | perl v5.26.1 |