/**
  * do it..
  */
 public function __invoke()
 {
     $comment = $this->event->getComment()->getBody();
     $title = $this->event->getIssue()->getTitle();
     $trelloCardShortLink = CardReference::getCardShortLinkFromTitle($title);
     $trelloApiHelper = $this->container->get('issue_manager.trello_api.api_helper');
     $api = $trelloApiHelper->getTrelloApi();
     $card = $trelloApiHelper->getTrelloApi()->getCardByShortLink($trelloCardShortLink);
     if ($this->pushToTrelloMentionedInComment($comment)) {
         $trelloApiHelper->getTrelloApi()->createComment($card, $this->prepareComment($comment));
     }
 }
 /**
  * @param RepositoryInformation $repoInfo
  * @param string $title
  */
 protected function createNewItem(RepositoryInformation $repoInfo, $title)
 {
     $checklistItemTitle = CardReference::removeReferenceFromTitle($title);
     $this->getTrelloApiHelper()->createChecklistItem($this->checklist, $repoInfo, $checklistItemTitle);
 }
 /**
  * @param string $title
  * @return Card|null
  */
 protected function getCardByTitle($title)
 {
     $trelloCardShortLink = CardReference::getCardShortLinkFromTitle($title);
     return $this->getTrelloApi()->getCardByShortLink($trelloCardShortLink);
 }