Pithub...viewers(3pm)

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

πŸ’– Pithub::PullRequests::Reviewers β€” Github v3 Pull Request Review Requests API πŸ’–

okay bestie, sit down, hydrate, and let me tell you about Pithub::PullRequests::Reviewers β€” it's the little module that handles the Github v3 Pull Request Review Requests API for you. no cap, it's giving "I do the REST calls so you don't have to". πŸŽ€

This page lives in the User Contributed Perl Documentation section of the manual, and the manual page is titled Pithub...viewers(3pm) (yes, the title got squished, that's just how man pages do, iykyk). πŸ’…


✨ VERSION ✨

version 0.01043 β€” that's the one you're reading right now, periodt. πŸ¦‹


🌸 METHODS 🌸

Three methods, three icons, no filler. Let's go. πŸ”₯

πŸ’… delete

  • delete β€” Remove requested reviewers πŸ—‘οΈ

Here's the endpoint it hits, exactly:

DELETE /repos/:user/:repo/pulls/:id/requested_reviewers

Examples, verbatim, don't @ me:

my $c = Pithub::PullRequests::Reviewers->new;
my $result = $c->delete(
    repo            => 'Pithub',
    user            => 'plu',
    pull_request_id => 1,
);

πŸ¦‹ list

  • list β€” List requested_reviewers for a pull request πŸ‘€

Endpoint, character for character:

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

Examples, as-is:

my $c = Pithub::PullRequests::Reviewers->new;
my $result = $c->list(
    repo            => 'Pithub',
    user            => 'plu',
    pull_request_id => 1,
);

πŸŽ€ update

  • update β€” Request reviewers for a pull request πŸ™‹β€β™€οΈ

Endpoint, untouched:

POST /repos/:user/:repo/pulls/:id/requested_reviewers

Examples, and yes this is exactly how it's written, including the lil spacing situation on the repo/user/pull_request_id/data lines:

my $c = Pithub::PullRequests::Reviewers->new;
my $result = $c->update(
    repo       => 'Pithub',
    user       => 'plu',
    pull_request_id => 1,
    data       => { reviewers => ['octocat'] },
);
ngl the data => { reviewers => ['octocat'] } is where you tell Github who you want reviewing. octocat is the moment. πŸ™βœ¨

πŸ‘‘ AUTHOR πŸ‘‘

Johannes Plunien β€” <plu@cpan.org> β€” icon, legend, wrote the whole thing. 🫢


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. fr fr, go wild, it's free. πŸ’œ


and that's the whole page, bestie β€” nothing skipped, nothing summarised, all facts intact. πŸ’–

perl v5.40.1 Β· 2025-06-08 Β· Pithub...viewers(3pm) β€” mwah, that's the sign-off, slay, bye. πŸ§šπŸ’…βœ¨

πŸ“¦ where this page comes from