[NFC] oncall cleanup
This commit is contained in:
parent
efba28f3f4
commit
1273c9e879
@ -4,6 +4,7 @@ declare(strict_types = 1);
|
||||
require_once 'vendor/autoload.php';
|
||||
|
||||
use Yasumi\Holiday;
|
||||
|
||||
/* On Call Ticket Notification Script */
|
||||
$oncall = new oncall();
|
||||
$oncall->dateAndTimeCheck();
|
||||
@ -17,8 +18,6 @@ if ($table) {
|
||||
$oncall->sendToMattermost($table);
|
||||
}
|
||||
|
||||
//email($item, $contact);
|
||||
|
||||
/**
|
||||
* The class that does all the magic.
|
||||
*/
|
||||
@ -82,6 +81,7 @@ class oncall {
|
||||
$this->baseUrl = getenv('REDMINE_URL');
|
||||
$this->apiKey = getenv('KEY');
|
||||
|
||||
// FIXME: Not using $this->apiKey.
|
||||
$this->queries = [
|
||||
'New Support Tickets' => 'https://hq.megaphonetech.com/issues.json?query_id=17&key=7ebe204bef5804f4effb9b4160a295487dde15f1',
|
||||
'New Maintenance Tickets' => 'https://hq.megaphonetech.com/issues.json?query_id=18&key=7ebe204bef5804f4effb9b4160a295487dde15f1',
|
||||
|
Loading…
Reference in New Issue
Block a user