2022-08-26 15:36:01 +03:00
|
|
|
<?php
|
2022-08-29 16:06:59 +03:00
|
|
|
include(__DIR__ . '/chirp.inc.php');
|
2022-08-26 15:36:01 +03:00
|
|
|
|
|
|
|
$user = getenv('GITEA_USER');
|
|
|
|
$pass = getenv('GITEA_PASS');
|
|
|
|
|
|
|
|
$gitea_url = 'https://git.bit5.ru';
|
2022-08-30 15:19:13 +03:00
|
|
|
$log_to_slack = !in_array('--dry-run', $argv);
|
2022-08-26 15:36:01 +03:00
|
|
|
|
2022-08-29 16:06:59 +03:00
|
|
|
$auth_token = hoopoe\gitea_login($gitea_url, $user, $pass);
|
2022-08-26 15:36:01 +03:00
|
|
|
if(!$auth_token)
|
|
|
|
throw new Exception("Could not login to gitea");
|
|
|
|
|
2022-08-29 16:06:59 +03:00
|
|
|
hoopoe\gitea_check_repo($auth_token, $gitea_url, 'bit/skeletik',
|
2022-08-29 10:58:15 +03:00
|
|
|
array(
|
|
|
|
'check_forks' => true,
|
|
|
|
'check_composer' => true,
|
2022-08-30 15:19:13 +03:00
|
|
|
'check_upm' => false,
|
|
|
|
'log_to_slack' => $log_to_slack,
|
2022-08-29 10:58:15 +03:00
|
|
|
)
|
|
|
|
);
|
2022-08-29 16:06:59 +03:00
|
|
|
hoopoe\gitea_check_repo($auth_token, $gitea_url, 'bit/skeletor',
|
2022-08-29 10:58:15 +03:00
|
|
|
array(
|
|
|
|
'check_forks' => true,
|
|
|
|
'check_composer' => true,
|
2022-08-30 15:19:13 +03:00
|
|
|
'check_upm' => true,
|
|
|
|
'log_to_slack' => $log_to_slack,
|
2022-08-29 10:58:15 +03:00
|
|
|
)
|
|
|
|
);
|
2022-08-29 16:06:59 +03:00
|
|
|
hoopoe\gitea_check_repo($auth_token, $gitea_url, 'bit/skeletor-rnd',
|
2022-08-29 10:58:15 +03:00
|
|
|
array(
|
|
|
|
'check_forks' => true,
|
|
|
|
'check_composer' => true,
|
2022-08-30 15:19:13 +03:00
|
|
|
'check_upm' => true,
|
|
|
|
'log_to_slack' => $log_to_slack,
|
2022-08-29 10:58:15 +03:00
|
|
|
)
|
|
|
|
);
|
2022-08-29 16:06:59 +03:00
|
|
|
hoopoe\gitea_check_repo($auth_token, $gitea_url, 'game/gymmania',
|
2022-08-29 14:18:09 +03:00
|
|
|
array(
|
|
|
|
'check_forks' => false,
|
|
|
|
'check_composer' => true,
|
2022-08-30 15:19:13 +03:00
|
|
|
'check_upm' => false,
|
|
|
|
'log_to_slack' => $log_to_slack,
|
2022-08-29 14:18:09 +03:00
|
|
|
)
|
|
|
|
);
|
2022-08-26 15:36:01 +03:00
|
|
|
|