Files
EasySoft-ZenTaoPMS/module/webhook/config.php
2017-11-08 16:00:24 +08:00

28 lines
2.0 KiB
PHP

<?php
$config->webhook->create = new stdclass();
$config->webhook->create->requiredFields = 'name, url';
$config->webhook->edit = new stdclass();
$config->webhook->edit->requiredFields = 'name, url';
$config->webhook->objectTypes['release'] = array('opened', 'edited', 'changestatus');
$config->webhook->objectTypes['build'] = array('opened', 'edited');
$config->webhook->objectTypes['testsuite'] = array('opened', 'edited');
$config->webhook->objectTypes['caselib'] = array('opened', 'edited');
$config->webhook->objectTypes['testreport'] = array('opened', 'edited');
$config->webhook->objectTypes['doc'] = array('created', 'edited', 'commented');
$config->webhook->objectTypes['doclib'] = array('created', 'edited');
$config->webhook->objectTypes['user'] = array('login', 'logout');
/* Unset entry to hide actions. */
$config->webhook->objectTypes = array();
$config->webhook->objectTypes['product'] = array('opened', 'edited', 'closed', 'undeleted');
$config->webhook->objectTypes['story'] = array('opened', 'edited', 'commented', 'frombug', 'changed', 'reviewed', 'closed', 'activated');
$config->webhook->objectTypes['productplan'] = array('opened', 'edited');
$config->webhook->objectTypes['project'] = array('opened', 'edited', 'started', 'delayed', 'suspended', 'closed', 'activated', 'undeleted');
$config->webhook->objectTypes['task'] = array('opened', 'edited', 'commented', 'assigned', 'confirmed', 'started', 'finished', 'paused', 'canceled', 'restarted', 'closed', 'activated');
$config->webhook->objectTypes['bug'] = array('opened', 'edited', 'commented', 'assigned', 'confirmed', 'bugconfirmed', 'resolved', 'closed', 'activated');
$config->webhook->objectTypes['case'] = array('opened', 'edited', 'commented', 'reviewed', 'confirmed');
$config->webhook->objectTypes['testtask'] = array('opened', 'edited', 'started', 'blocked', 'closed', 'activated');
$config->webhook->objectTypes['todo'] = array('opened', 'edited');