Commit 6f32daa8 authored by Sean Madsen's avatar Sean Madsen

when pub via GH, only send email if branch is definied in book

parent 7a6acf97
......@@ -65,7 +65,9 @@ class PublishController extends Controller {
$this->publisher = $this->get('publisher');
foreach ($identifiers as $identifier) {
$this->publisher->publish("{$identifier}/{$processor->branch}");
$this->sendEmail($processor->recipients);
if ($this->publisher->version) {
$this->sendEmail($processor->recipients);
}
}
$response = $this->publisher->getMessagesInPlainText();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment