/** * Creates a New issue Comment on github. * * @param \VersionControl\GitlabIssueBundle\Entity\Issues\IssueComment $issueCommentEntity */ public function createIssueComment(\VersionControl\GitlabIssueBundle\Entity\Issues\IssueComment $issueCommentEntity) { $this->authenticate(); $issueId = $issueCommentEntity->getIssue()->getId(); $comment = $this->client->api('issues')->addComment($this->issueIntegrator->getProjectName(), $issueId, $issueCommentEntity->getComment()); $issueCommentTransfomer = new IssueCommentToEntityTransformer(); return $issueCommentTransfomer->transform($comment); }