config.php 1.6 KB

123456789101112131415161718192021222324
  1. <?php
  2. $config->webhook->create = new stdclass();
  3. $config->webhook->create->requiredFields = 'name';
  4. $config->webhook->edit = new stdclass();
  5. $config->webhook->edit->requiredFields = 'name';
  6. $config->webhook->dingapiUrl = 'https://oapi.dingtalk.com/';
  7. $config->webhook->wechatApiUrl = 'https://qyapi.weixin.qq.com/cgi-bin/';
  8. $config->webhook->feishuApiUrl = 'https://open.feishu.cn/open-apis/';
  9. /* Unset entry to hide actions. */
  10. $config->webhook->objectTypes = array();
  11. $config->webhook->objectTypes['product'] = array('opened', 'edited', 'closed', 'undeleted');
  12. $config->webhook->objectTypes['story'] = array('opened', 'edited', 'commented', 'frombug', 'changed', 'reviewed', 'closed', 'activated');
  13. $config->webhook->objectTypes['productplan'] = array('opened', 'edited');
  14. $config->webhook->objectTypes['execution'] = array('opened', 'edited', 'started', 'delayed', 'suspended', 'closed', 'activated', 'undeleted');
  15. $config->webhook->objectTypes['task'] = array('opened', 'edited', 'commented', 'assigned', 'confirmed', 'started', 'finished', 'paused', 'canceled', 'restarted', 'closed', 'activated');
  16. $config->webhook->objectTypes['bug'] = array('opened', 'edited', 'commented', 'assigned', 'confirmed', 'bugconfirmed', 'resolved', 'closed', 'activated');
  17. $config->webhook->objectTypes['case'] = array('opened', 'edited', 'commented', 'reviewed', 'confirmed');
  18. $config->webhook->objectTypes['testtask'] = array('opened', 'edited', 'started', 'blocked', 'closed', 'activated');
  19. $config->webhook->objectTypes['todo'] = array('opened', 'edited');
  20. $config->webhook->needAssignTypes = array('story', 'task', 'bug', 'todo', 'feedback');