Pithub...mments(3pm)

πŸ“¦
version 0.01043 Β· 4 versions
, in debian trixie, ubuntu resolute, ubuntu stonking

πŸ’– Pithub::Issues::Comments β€” bestie edition πŸ’–

okay so real talk: this is Pithub::Issues::Comments, the Github v3 Issue Comments API wrapper, and it lives in the Pithub family. It's a Perl module, it's iconic, it's giving "I comment on issues for a living." Let's go πŸ¦‹


✨ VERSION ✨

This is version 0.01043. write it down bestie, versions matter.


🌸 METHODS 🌸

πŸŽ€ create

  • create a comment β€” literally making a whole new comment out of thin air, main character energy
POST /repos/:user/:repo/issues/:id/comments

Examples, verbatim, don't touch:

my $c = Pithub::Issues::Comments->new;
my $result = $c->create(
    repo     => 'Pithub',
    user     => 'plu',
    issue_id => 1,
    data     => { body => 'some comment' }
);

πŸ’€ delete

  • delete a comment β€” it's gone, no cap, not coming back πŸ™ˆ
DELETE /repos/:user/:repo/issues/comments/:id

Examples:

my $c = Pithub::Issues::Comments->new;
my $result = $c->delete(
    repo       => 'Pithub',
    user       => 'plu',
    comment_id => 1,
);

πŸ”₯ get

  • get a single comment β€” just the one, the one and only, obsessed
GET /repos/:user/:repo/issues/comments/:id

Examples:

my $c = Pithub::Issues::Comments->new;
my $result = $c->get(
    repo       => 'Pithub',
    user       => 'plu',
    comment_id => 1,
);

🌈 list

  • list comments on an issue β€” the whole comment section, the group chat, the discourse
GET /repos/:user/:repo/issues/:id/comments

Examples:

my $c = Pithub::Issues::Comments->new;
my $result = $c->list(
    repo     => 'Pithub',
    user     => 'plu',
    issue_id => 1,
);

✨ update

  • edit a comment β€” the "wait I need to rephrase that" moment, we've all been there
PATCH /repos/:user/:repo/issues/comments/:id

Examples:

my $c = Pithub::Issues::Comments->new;
my $result = $c->update(
    repo       => 'Pithub',
    user       => 'plu',
    comment_id => 1,
    data       => { body => 'some comment' },
);

πŸ‘‘ AUTHOR πŸ‘‘

Johannes Plunien <plu@cpan.org> β€” the legend, the blueprint, the moment πŸ’…


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


and that's the whole page bestie πŸ’– generated with perl v5.40.1, dated 2025-06-08, from the one and only Pithub...mments(3pm). mwah, bye πŸŽ€πŸ¦‹βœ¨

πŸ“¦ where this page comes from