}
$res = $tg->factory('SendMessage',array(
- 'chat_id' => 35721679,
+ 'chat_id' => 35721679, // fixme - this needs to be mapped to who we are sending to (currently it's only me!!!)
'parse_mode' => 'MarkdownV2',
'text' => "/ticket@{$this->onid} *". $tg->escape($t->summary) . "*\n\n".
"{$this->cgtype} by ". $tg->escape($this->person()->name) . "\n\n" . $tg->escape(implode("\n", $str))
if ($b->find(true)) {
return $b;
}
+ if (preg_match("/_T([0-9]+)_/",$n, $matches)) {
+ $b->ticket_id = $matches[1];
+ }
+
$b->insert();
return $b;
}
repo_id INT(11) NOT NULL DEFAULT 0,
PRIMARY KEY (id)
) ;
+
+ ALTER TABLE mtrack_repos_branch ADD COLUMN ticket_id INT NOT NULL DEFAULT 0;
+
ALTER TABLE mtrack_repos_branch ADD INDEX plookup(repo_id,name);
ALTER TABLE mtrack_repos_branch CHANGE COLUMN name name VARCHAR(128) NOT NULL DEFAULT '';