This commit is contained in:
Dmitry Khomutov 2017-01-20 22:10:18 +07:00
parent 285853efad
commit d46ecce159
No known key found for this signature in database
GPG key ID: 7EB36C9576F9ECB9

View file

@ -207,13 +207,13 @@ class GithubBuild extends RemoteGitBuild
if (!is_null($diffLineNumber)) {
$helper = new Github();
$repo = $this->getProject()->getReference();
$repo = $this->getProject()->getReference();
$prNumber = $this->getExtra('pull_request_number');
$commit = $this->getCommitId();
$commit = $this->getCommitId();
$allowCommentCommit = (boolean)Config::getInstance()->get('php-censor.github.comments.commit', false);
$allowCommentPullRequest = (boolean)Config::getInstance()->get('php-censor.github.comments.pull_request', false);
$allowCommentCommit = Config::getInstance()->get('php-censor.github.comments.commit');
$allowCommentPullRequest = Config::getInstance()->get('php-censor.github.comments.pull_request');
if (!empty($prNumber)) {
if ($allowCommentPullRequest) {
$helper->createPullRequestComment($repo, $prNumber, $commit, $file, $diffLineNumber, $message);