Net::GitHub::V2::PullRequest - GitHub Pull Request API
use Net::GitHub::V2::PullRequest; my $pulls = Net::GitHub::V2::PullRequest->new( owner => 'fayland', repo => 'perl-net-github' );
http://develop.github.com/p/pulls.html
For those (authentication required) below, you must set login and token (in https://github.com/account
my $pulls = Net::GitHub::V2::PullRequest->new( owner => 'fayland', repo => 'perl-net-github', login => 'fayland', token => '54b5197d7f92f52abc5c7149b313cf51', # faked );
my $pull = $pulls->pull_request( base => 'master', head => 'someone:master', title => 'fix', body => 'fix this bug', );
Create a pull request (authentication required). The request will be made on <owner>/<base> to pull in changes in head. base defaults to master, and head defaults to <login>:master.
<owner>/<base>
head
base
master
<login>:master
Fayland Lam, <fayland at gmail.com>
<fayland at gmail.com>
Jesse Luehrs doy at tozt dot net
doy at tozt dot net
Copyright 2011 Fayland Lam, Jesse Luehrs all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Net::GitHub, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::GitHub
CPAN shell
perl -MCPAN -e shell install Net::GitHub
For more information on module installation, please visit the detailed CPAN module installation guide.