hoopoe/chirp.php

47 lines
1.1 KiB
PHP
Raw Permalink Normal View History

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';
$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(
2022-09-26 17:19:28 +03:00
'check_forks' => false,
2022-08-29 10:58:15 +03:00
'check_composer' => true,
'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(
2022-09-26 17:19:28 +03:00
'check_forks' => false,
2022-08-29 10:58:15 +03:00
'check_composer' => true,
'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(
2022-09-26 17:19:28 +03:00
'check_forks' => false,
2022-08-29 10:58:15 +03:00
'check_composer' => true,
'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,
'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