Pithub...quests(3pm)
π Pithub::PullRequests β the manual, but make it cute π
okay bestie, sit down, hydrate, because we're diving into Pithub::PullRequests, which is the Github v3 Pull Requests API wrapper, from the Pithub family. Manual name's Pithub...quests (3pm), User Contributed Perl Documentation β yes the truncation is giving cryptic but we move. π
β¨ VERSION β¨
version 0.01043 π
πΈ METHODS πΈ
π¦ comments
Gives you access to Pithub::PullRequests::Comments. Go off, queen. π¬
π¦ reviewers
Gives you access to Pithub::PullRequests::Reviewers. π
π¦ commits
- 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
- 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
- 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
- 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
- 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
- List pull requests
GET /repos/:user/:repo/pulls
Examples:
my $p = Pithub::PullRequests->new;
my $result = $p->list(
user => 'plu',
repo => 'Pithub',
page => 2,
# Defaults to page 1. Note that the GitHub API returns (a
# maximum of) 100 results per page.
state => 'open',
# Defaults to 'open', other options are 'closed' and 'all'
);
π¦ merge
- 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
- 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.
and that's the whole vibe, bestie π«Ά this was perl v5.40.1, dated 2025-06-08, and yes we really did just read Pithub...quests (3pm) together. slay. β¨π
π¦ where this page comes from
- debian trixie: libpithub-perl 0.01043-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libpithub-perl 0.01043-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libpithub-perl 0.01043-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms