DOKK / manpages / debian 12 / libpithub-perl / Pithub::PullRequests::Reviewers.3pm.en
Pithub::PullRequests::Reviewers(3pm) User Contributed Perl Documentation Pithub::PullRequests::Reviewers(3pm)

Pithub::PullRequests::Reviewers - Github v3 Pull Request Review Requests API

version 0.01040

Remove requested reviewers

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

Examples:

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

List requested_reviewers for a pull request

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

Examples:

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

Request reviewers for a pull request

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

Examples:

    my $c = Pithub::PullRequests::Reviewers->new;
    my $result = $c->update(
        repo       => 'Pithub',
        user       => 'plu',
        pull_request_id => 1,
        data       => { reviewers => ['octocat'] },
    );
    

Johannes Plunien <plu@cpan.org>

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.

2022-10-04 perl v5.34.0