Pithub...rators(3pm)
π Pithub::Repos::Collaborators π
okay bestie, welcome to the Pithub::Repos::Collaborators page β it's part of the User Contributed Perl Documentation crew and it's giving Github v3 Repo Collaborators API realness. no cap. β¨
πΈ NAME πΈ
Pithub::Repos::Collaborators β the Github v3 Repo Collaborators API, bestie. that's the whole vibe. π
π VERSION π
version 0.01043 β yes, that exact number, don't @ me π«Ά
β¨ METHODS β¨
four methods, all iconic, all here, zero skipped. let's go. π
π add
- add collaborator, obviously π
PUT /repos/:user/:repo/collaborators/:user
Examples:
my $c = Pithub::Repos::Collaborators->new;
my $result = $c->add(
user => 'plu',
repo => 'Pithub',
collaborator => 'rbo',
);
like... you're literally adding a whole human to a repo. main character behavior fr fr. π
π¦ is_collaborator
- get, bestie β checking if someone's in the collaborator squad or not π
GET /repos/:user/:repo/collaborators/:user
Examples:
my $c = Pithub::Repos::Collaborators->new;
my $result = $c->is_collaborator(
user => 'plu',
repo => 'Pithub',
collaborator => 'rbo',
);
if ( $result->is_success ) {
print "rbo is added as collaborator to Pithub\n";
}
elsif ( $result->code == 404 ) {
print "rbo is not added as collaborator to Pithub\n";
}
so is_success means they're in, and a 404 means they're not in. the vibes are immaculate and the check is simple. π
π list
- list, the name says it all π
GET /repos/:user/:repo/collaborators
Examples:
my $c = Pithub::Repos::Collaborators->new;
my $result = $c->list(
user => 'plu',
repo => 'Pithub',
);
just roll call for the whole collaborator group chat. π«Ά
π remove
- remove collaborator β it's giving goodbye era π
DELETE /repos/:user/:repo/collaborators/:user
Examples:
my $c = Pithub::Repos::Collaborators->new;
my $result = $c->remove(
user => 'plu',
repo => 'Pithub',
collaborator => 'rbo',
);
not me removing someone from the repo... it had to be done tho. π
π AUTHOR π
Johannes Plunien <plu@cpan.org> β the author, the legend, the moment. β¨
π 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.
so like, free software, same terms as Perl 5 itself β legal slay. read it properly, bestie, don't just skim. π
and that's the whole page!! this was generated for perl v5.40.1 on 2025-06-08, so if you're reading it any other time... hi, you're in the future, hope it's cute over there. π¦ bye bestie, go add some collaborators π
π¦ 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