Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/herald/HeraldPreCommitContentAdapter.php
Show All 25 Lines | final class HeraldPreCommitContentAdapter extends HeraldAdapter { | ||||
public function getObject() { | public function getObject() { | ||||
return $this->log; | return $this->log; | ||||
} | } | ||||
public function getAdapterContentName() { | public function getAdapterContentName() { | ||||
return pht('Commit Hook: Commit Content'); | return pht('Commit Hook: Commit Content'); | ||||
} | } | ||||
public function getAdapterSortOrder() { | |||||
return 2500; | |||||
} | |||||
public function getAdapterContentDescription() { | |||||
return pht( | |||||
"React to commits being pushed to hosted repositories.\n". | |||||
"Hook rules can block changes."); | |||||
btrahan: "Hook rules can block changes." sounds a little better to me | |||||
Not Done Inline ActionsOops, thanks. epriestley: Oops, thanks. | |||||
} | |||||
public function getFieldNameMap() { | public function getFieldNameMap() { | ||||
return array( | return array( | ||||
) + parent::getFieldNameMap(); | ) + parent::getFieldNameMap(); | ||||
} | } | ||||
public function getFields() { | public function getFields() { | ||||
return array_merge( | return array_merge( | ||||
array( | array( | ||||
▲ Show 20 Lines • Show All 338 Lines • Show Last 20 Lines |
"Hook rules can block changes." sounds a little better to me