Allow sync of Github comments without common username and add unit tests

This commit is contained in:
Frederic Guillot
2015-06-20 19:21:35 -04:00
parent 22b26d0b4d
commit 7b947ebdbd
17 changed files with 2125 additions and 14 deletions

View File

@@ -45,7 +45,6 @@ class CommentCreation extends Base
public function getEventRequiredParameters()
{
return array(
'reference',
'comment',
'user_id',
'task_id',
@@ -62,7 +61,7 @@ class CommentCreation extends Base
public function doAction(array $data)
{
return (bool) $this->comment->create(array(
'reference' => $data['reference'],
'reference' => isset($data['reference']) ? $data['reference'] : '',
'comment' => $data['comment'],
'task_id' => $data['task_id'],
'user_id' => $data['user_id'],