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

NAME

Net::GitHub::V2::PullRequest - GitHub Pull Request API

SYNOPSIS

    use Net::GitHub::V2::PullRequest;

    my $pulls = Net::GitHub::V2::PullRequest->new(
        owner => 'fayland', repo => 'perl-net-github'
    );

DESCRIPTION

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
    );

METHODS

pull_request
    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.

AUTHOR

Fayland Lam, <fayland at gmail.com>

Jesse Luehrs doy at tozt dot net

COPYRIGHT & LICENSE

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.