Pithub...mments(3pm)
π Pithub::PullRequests::Comments π
okay bestie, welcome to Pithub::PullRequests::Comments β she's the Perl module (that's the 3pm part, iykyk) that lets you talk to the Github v3 Pull Request Comments API. she does comments on pull requests. she's a whole vibe. let's go π¦
β¨ VERSION β¨
version 0.01043 β yes queen, that's the one you're running π
πΈ METHODS πΈ
π
create
- Create a comment β brand new comment, fresh out the box β¨
POST /repos/:user/:repo/pulls/:id/comments
Examples:
my $c = Pithub::PullRequests::Comments->new;
my $result = $c->create(
repo => 'Pithub',
user => 'plu',
pull_request_id => 1,
data => {
body => 'Nice change',
commit_id => '6dcb09b5b57875f334f61aebed695e2e4193db5e',
path => 'file1.txt',
position => 4,
}
);
look at that data hash β body, commit_id, path, position, all of it, exactly like that. no cap. π«Ά
π delete
- Delete a comment β it's giving "we don't talk about bruno" π she's gone, periodt
DELETE /repos/:user/:repo/pulls/comments/:id
Examples:
my $c = Pithub::PullRequests::Comments->new;
my $result = $c->delete(
repo => 'Pithub',
user => 'plu',
comment_id => 1,
);
β οΈ bestie this one is DELETE. as in, actually gone. no undo button, no "oops I changed my mind" era. triple check that comment_id before you send it π
π get
- Get a single comment β one comment, main character energy, no plus-ones π
GET /repos/:user/:repo/pulls/comments/:id
Examples:
my $c = Pithub::PullRequests::Comments->new;
my $result = $c->get(
repo => 'Pithub',
user => 'plu',
comment_id => 1,
);
π list
- List comments on a pull request β the whole group chat, every message, scrolling forever π
GET /repos/:user/:repo/pulls/:id/comments
Examples:
my $c = Pithub::PullRequests::Comments->new;
my $result = $c->list(
repo => 'Pithub',
user => 'plu',
pull_request_id => 1,
);
notice she takes pull_request_id not comment_id β because she's listing comments on a pull request, okay? different girl, different energy π
π¦ update
- Edit a comment β glow-up time, we're changing the
bodyand nothing else π
PATCH /repos/:user/:repo/pulls/comments/:id
Examples:
my $c = Pithub::PullRequests::Comments->new;
my $result = $c->update(
repo => 'Pithub',
user => 'plu',
comment_id => 1,
data => { body => 'some updated comment' },
);
the data hash here is literally just { body => 'some updated comment' } β she's lowkey minimal and honestly? iconic for it β¨
π AUTHOR π
Johannes Plunien <plu@cpan.org> β the legend, the moment, the blueprint π
πΈ 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 page bestie!! π«Ά this was perl v5.40.1, dated 2025-06-08, served up fresh from Pithub...mments(3pm) β slay, go comment on a pull request, ily πβ¨
π¦ 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