Pithub...tatuses(3pm)
π Pithub::Repos::Statuses β the manual, but make it cute π
okay bestie, sit down, hydrate, and let me tell you about Pithub::Repos::Statuses β it's the Github v3 repos / statuses API module, and it is literally the main character of your CI pipeline. β¨
It's from Pithub...tatuses(3pm), which is the perl manual-page situation, so if you ever need to find it again: that's the name. iykyk π«Ά
πΈ VERSION πΈ
version 0.01043 β yes, a real number, no cap. π
β¨ METHODS β¨
π¦ list
okay so first up, the extra arguments you can pass, and there is exactly one (1):
refβ the SHA, branch, or tag-name you wanna get statuses for. that's it, that's the whole list. π
What it does: list statuses for a ref. that's the vibe.
Here's the endpoint it hits, verbatim, don't touch it:
GET /repos/:user/:repo/statuses/:ref
Examples, bestie β copy these exactly:
my $statuses = Pithub::Repos::Statuses->new;
my $result = $statuses->list( ref => 'master' );
slay. that's it. iconic. β¨
π create
okay now the spicy one. extra arguments first:
stateβ required, btw, not optional, do not skip it, the API will simply not be having it. it's the state of the status, and it can be one of'pending','success','error'or'failure'. those four. periodt. πtarget_urlβ this URL gets used to link from the status to some related page β like, for instance, the build result for this specific SHA. so you can click straight through to whatever drama went down. π₯descriptionβ a short description of the status. keep it brief, bestie, it's a description not a novel. π
What it does: add a status to a SHA.
Endpoint, verbatim:
POST /repos/:user/:repo/statuses/:sha
Examples, and yes the formatting is exactly like this, don't @ me:
my $statuses = Pithub::Repos::Statuses->new;
my $result = $statuses->create( user => 'plu', repo => 'Pithub',
sha => '0123456',
data => {
state => 'error',
description => 'Build failed',
target_url => 'https://travis-ci.org/some/url/0123456',
},
);
look at that nested hashref. it's giving structured data. it's giving error / Build failed. honestly obsessed. π
π AUTHOR π
Johannes Plunien <plu@cpan.org> β the actual legend who wrote this. show some respect, bestie. π
π 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. fr fr, free as in go wild, just keep the same terms. πΈ
and that's the whole page, bestie!! π«Ά you read all of it. so proud. the footer energy was perl v5.40.1, dated 2025-06-08, filed under Pithub...tatuses(3pm) β consider that your cute little sign-off, mwah. πβ¨π§
π¦ 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