src/AppBundle/Provider/GithubProvider.php
/**
     * @param MergeRequest $mergeRequest
     * @param string $comment
     * @throws \Github\Exception\MissingArgumentException
     */
@param MergeRequest $mergeRequest
@param string $comment
@throws \Github\Exception\MissingArgumentException
@param MergeRequest $mergeRequest @param string $comment @throws \ Github \ Exception \ MissingArgumentException
public function addMergeRequestComment(MergeRequest $mergeRequest, $comment)
    {
        $project = $mergeRequest->getProject();
        $mergeRequestApi = $this->client->api('issue');
        $mergeRequestApi->comments()->create(
            $project->getNamespace(),
            $project->getName(),
            $mergeRequest->getRemoteId(),
            [
                'body' => $comment
            ]
        );
    }
public function addMergeRequestComment ( MergeRequest $ mergeRequest , $ comment ) { $ project = $ mergeRequest -> getProject ( ) ; $ mergeRequestApi = $ this -> client -> api ( 'issue' ) ; $ mergeRequestApi -> comments ( ) -> create ( $ project -> getNamespace ( ) , $ project -> getName ( ) , $ mergeRequest -> getRemoteId ( ) , [ 'body' => $ comment ] ) ; }
@param MergeRequest $mergeRequest
 @param string $comment
 @throws \Github\Exception\MissingArgumentException
@param MergeRequest $mergeRequest @param string $comment @throws \ Github \ Exception \ MissingArgumentException
/** @var Issue $mergeRequestApi */