Pithub...rators(3pm)

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

πŸ’– 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. ✨


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