/**
* Add a comment in JIRA with the commit hash
* @param Commit $commit The commit for which we're running the Git Hook
* @throws GitHookException if requirement fails
*/
public function run(Commit $commit)
{
$jiraIssues = $commit->jiras();
$this->logger->debug('Found ' . count($jiraIssues) . " jira issue(s) in {$commit}");
$revision = $commit->revision();
if ($this->isChangeFeatureFlip($revision)) {
foreach ($jiraIssues as $jira) {
$this->logger->debug("Adding comment to jira {$jira}");
$this->addLabels($jira);
}
}
}