GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  PITHUB::PULLREQUESTS (3)

.ds Aq ’

NAME

Pithub::PullRequests - Github v3 Pull Requests API

CONTENTS

VERSION

version 0.01033

METHODS

    comments

Provides access to Pithub::PullRequests::Comments.

    commits

o List commits on a pull request



    GET /repos/:user/:repo/pulls/:id/commits



Examples:



    my $p = Pithub::PullRequests->new;
    my $result = $p->commits(
        user            => plu,
        repo            => Pithub,
        pull_request_id => 1
    );



    create

o Create a pull request



    POST /repos/:user/:repo/pulls



Examples:



    my $p = Pithub::PullRequests->new;
    my $result = $p->create(
        user   => plu,
        repo => Pithub,
        data   => {
            base  => master,
            body  => Please pull this in!,
            head  => octocat:new-feature,
            title => Amazing new feature,
        }
    );



    files

o List pull requests files



    GET /repos/:user/:repo/pulls/:id/files



Examples:



    my $p = Pithub::PullRequests->new;
    my $result = $p->files(
        user            => plu,
        repo            => Pithub,
        pull_request_id => 1,
    );



    get

o Get a single pull request



    GET /repos/:user/:repo/pulls/:id



Examples:



    my $p = Pithub::PullRequests->new;
    my $result = $p->get(
        user            => plu,
        repo            => Pithub,
        pull_request_id => 1,
    );



    is_merged

o Get if a pull request has been merged



    GET /repos/:user/:repo/pulls/:id/merge



Examples:



    my $p = Pithub::PullRequests->new;
    my $result = $p->is_merged(
        user            => plu,
        repo            => Pithub,
        pull_request_id => 1,
    );



    list

o List pull requests



    GET /repos/:user/:repo/pulls



Examples:



    my $p = Pithub::PullRequests->new;
    my $result = $p->list(
        user => plu,
        repo => Pithub
    );



    merge

o Merge a pull request



    PUT /repos/:user/:repo/pulls/:id/merge



Examples:



    my $p = Pithub::PullRequests->new;
    my $result = $p->merge(
        user            => plu,
        repo            => Pithub,
        pull_request_id => 1,
    );



    update

o Update a pull request



    PATCH /repos/:user/:repo/pulls/:id



Examples:



    my $p = Pithub::PullRequests->new;
    my $result = $p->update(
        user            => plu,
        repo            => Pithub,
        pull_request_id => 1,
        data            => {
            base  => master,
            body  => Please pull this in!,
            head  => octocat:new-feature,
            title => Amazing new feature,
        }
    );



AUTHOR

Johannes Plunien <plu@cpan.org>

COPYRIGHT AND LICENSE

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.

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 PITHUB::PULLREQUESTS (3) 2016-01-22

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.