---
name: "Net::GitHub::V2::PullRequest"
section: "3pm"
platform: "linux"
package: "libnet-github-perl"
version: "0.46-1"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/Net::GitHub::V2::PullRequest"
---

# Net::GitHub::V2::PullRequest(3pm)

GitHub Pull Request API

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