4 require_once __DIR__
."/../vendor/autoload.php";
8 $cli = new http\
Client("curl", "seekat");
10 "max_host_connections" => 10,
11 "max_total_connections" => 50,
14 $log = new Monolog\
Logger("seekat");
15 $log->pushHandler((new Monolog\Handler\
StreamHandler(STDERR
))->setLevel(Monolog\Logger
::WARNING
));
18 "Authorization" => "token ".getenv("GITHUB_TOKEN")
21 $api(function() use($api) {
22 $repos = yield
$api->users
->m6w6
->repos([
23 "visibility" => "public",
24 "affiliation" => "owner"
27 $next = $repos->next();
30 foreach ($repos as $repo) {
31 $batch[] = $repo->hooks();
33 foreach (yield
$batch as $key => $hooks) {
37 printf("%s:\n", $repos->{$key}->name
);
38 foreach ($hooks as $hook) {
39 if ($hook->name
== "web") {
40 printf("\t%s\n", $hook->config
->url
);
42 printf("\t%s\n", $hook->name
);