Pithub::Repos::Commits
version 0.01000
Create a commit comment
POST /repos/:user/:repo/commits/:sha/comments
Examples:
$result = $p->repos->commits->create_comment( user => 'plu', repo => 'Pithub', sha => 'df21b2660fb6', data => { body => 'some comment' }, );
Delete a commit comment
DELETE /repos/:user/:repo/comments/:id
$result = $p->repos->commits->delete_comment( user => 'plu', repo => 'Pithub', comment_id => 1, );
Get a single commit
GET /repos/:user/:repo/commits/:sha
$result = $p->repos->commits->get( user => 'plu', repo => 'Pithub', sha => 'df21b2660fb6', );
Get a single commit comment
GET /repos/:user/:repo/comments/:id
$result = $p->repos->commits->get_comment( user => 'plu', repo => 'Pithub', comment_id => 1, );
List commits on a repository
GET /repos/:user/:repo/commits
$result = $p->repos->commits->list( user => 'plu', repo => 'Pithub', );
List commit comments for a repository
Commit Comments leverage these custom mime types. You can read more about the use of mimes types in the API here. TODO: Link github API
GET /repos/:user/:repo/comments
$result = $p->repos->commits->list_comments( user => 'plu', repo => 'Pithub', );
List comments for a single commit
GET /repos/:user/:repo/commits/:sha/comments
$result = $p->repos->commits->list_comments( user => 'plu', repo => 'Pithub', sha => 'df21b2660fb6', );
Update a commit comment
PATCH /repos/:user/:repo/comments/:id
$result = $p->repos->commits->update_comment( user => 'plu', repo => 'Pithub', comment_id => 1, data => { body => 'updated comment' }, );
To install Pithub, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Pithub
CPAN shell
perl -MCPAN -e shell install Pithub
For more information on module installation, please visit the detailed CPAN module installation guide.