Pithub...atching(3pm)

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

πŸ’– NAME πŸ’–

Pithub::Repos::Watching β€” bestie, this is the Github v3 Repo Watching API module, and it's literally your remote control for the whole "am I watching this repo or not" situation ✨


πŸŽ€ VERSION πŸŽ€

version 0.01043 β€” that's the one, no cap 🫢


πŸ‘‘ METHODS πŸ‘‘

🌸 is_watching

  • Check if you are watching a repo πŸ‘€
GET /user/watched/:user/:repo

Examples:

my $w = Pithub::Repos::Watching->new;
my $result = $w->is_watching(
    repo => 'Pithub',
    user => 'plu',
);

Like, just a lil vibe check on whether you're a watcher. So simple, so iconic πŸ’…


πŸ¦‹ list_repos

  • List repos being watched by a user πŸ“œ
GET /users/:user/watched

Examples:

my $w = Pithub::Repos::Watching->new;
my $result = $w->list_repos( user => 'plu' );
  • List repos being watched by the authenticated user πŸ™‹β€β™€οΈ
GET /user/watched

Examples:

my $w = Pithub::Repos::Watching->new;
my $result = $w->list_repos;

Not me calling the exact same method with no args to get my own watched list. Two moods, one method, main character energy fr fr πŸ”₯


⭐ list

  • List watchers πŸ‘₯
GET /repos/:user/:repo/watchers

Examples:

my $w = Pithub::Repos::Watching->new;
my $result = $w->list(
    user => 'plu',
    repo => 'Pithub',
);

Okay so this one is the flip side β€” instead of the repos you're watching, it's the people watching a repo. The way that these two are opposite but equal πŸ˜­πŸ’–


🌈 start_watching

  • Watch a repo πŸ””
PUT /user/watched/:user/:repo

Examples:

my $w = Pithub::Repos::Watching->new;
my $result = $w->start_watching(
    user => 'plu',
    repo => 'Pithub',
);

Hitting that watch button but in code. Ate, honestly ✨


πŸ’œ stop_watching

  • Stop watching a repo πŸ”•
DELETE /user/watched/:user/:repo

Examples:

my $w = Pithub::Repos::Watching->new;
my $result = $w->stop_watching(
    user => 'plu',
    repo => 'Pithub',
);

The un-watch. The goodbye. The "it's not you, it's my notifications" πŸ₯² Sending it off with grace, periodt.


🌟 AUTHOR 🌟

Johannes Plunien <plu@cpan.org> β€” the icon, the legend, the one who wrote all of this πŸ’–


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.


🧚 That's the whole page, bestie! Go watch some repos (responsibly) 🫢

perl v5.40.1 Β· 2025-06-08 Β· Pithub...atching(3pm) β€” mwah, bye πŸ’…πŸŒΈ

πŸ“¦ where this page comes from