We want to enforce a linear history on master i.e. no merges. Seems like this can't be enforced with Herald today as there's no way to detect the condition of a pushed commit with more than 1 parent.
Description
Description
Event Timeline
Comment Actions
"Is merge commit" detects this.
case PhabricatorRepositoryType::REPOSITORY_TYPE_GIT: case PhabricatorRepositoryType::REPOSITORY_TYPE_MERCURIAL: $parents = id(new DiffusionLowLevelParentsQuery()) ->setRepository($repository) ->withIdentifier($this->getObject()->getRefNew()) ->execute(); return (count($parents) > 1);
Does that solve your problem?
Comment Actions
Oops... sorry, can't believe I missed that! I was looking in "Commit Hook: Branches/Tags/Bookmarks" instead of "Commit Content".
Looks like I can't close this task myself? Anyway, we're good, feel free to close.