Pithub...tarring(3pm)
π NAME π
okay bestie, gather round, because this is Pithub::Repos::Starring β the Github v3 Repo Starring API πβ¨ (yes the page header calls it Pithub...tarring(3pm), it's just the module name getting a lil squished, no cap π
)
β¨ VERSION β¨
this is version 0.01043 πΈ β write it down, love her.
π¦ METHODS π¦
π has_starred
- Check if you are starring a repository. π likeβ¦ are you in the stargazers or not, bestie?
β οΈ this one requires the user to be authenticated. no login, no answer. periodt.
the endpoint it hits is:
GET /user/starred/:user/:repo
example time, here's how you'd actually call it:
my $s = Pithub::Repos::Starring->new;
my $result = $s->has_starred(
repo => 'Pithub',
user => 'plu',
);
π list
- List all stargazers of a repository π« everybody who ever hit that star button on this repo, gathered in one place.
the endpoint:
GET /repos/:user/:repo/stargazers
example:
my $s = Pithub::Repos::Starring->new;
my $result = $s->list(
repo => 'Pithub',
user => 'plu',
);
π§ list_repos
this one's got two whole modes, iconic behavior honestly:
- List repositories being starred by a user. πΈ just a lil peek at somebody's starred list.
endpoint:
GET /users/:user/starred
example:
my $s = Pithub::Repos::Starring->new;
my $result = $s->list_repos(
user => 'plu',
);
- List repos being starred by the authenticated user π that's you, main character. it's the logged-in person's own starred list.
endpoint:
GET /user/starred
example (no user arg this time, because it's literally just you π«Ά):
my $s = Pithub::Repos::Starring->new;
my $result = $s->list_repos;
β star
- Star a repository. π the whole point of this module, let's be real.
β οΈ requires the user to be authenticated. you can't star anything anonymously, bestie.
endpoint:
PUT /user/starred/:user/:repo
example:
my $s = Pithub::Repos::Starring->new;
my $result = $s->star(
repo => 'Pithub',
user => 'plu',
);
π unstar
- Unstar a repository. π the breakup arc. taking the star back. it's giving "we're not doing this anymore".
β οΈ yep, this one also requires the user to be authenticated.
endpoint:
DELETE /user/starred/:user/:repo
example:
my $s = Pithub::Repos::Starring->new;
my $result = $s->unstar(
repo => 'Pithub',
user => 'plu',
);
π«Ά AUTHOR π«Ά
Johannes Plunien β <plu@cpan.org> π the icon who made all this happen, we stan.
π 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 yes, go off, remix her, share her, just keep it on those same terms fr fr.
okay that's the whole page bestie, tysm for reading π this was Pithub...tarring(3pm), built against perl v5.40.1, dated 2025-06-08 β mwah, go star some repos π
β¨
π¦ 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