Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/herald/HeraldPreCommitContentAdapter.php
Show All 15 Lines | final class HeraldPreCommitContentAdapter extends HeraldPreCommitAdapter { | ||||
} | } | ||||
public function getAdapterContentDescription() { | public function getAdapterContentDescription() { | ||||
return pht( | return pht( | ||||
"React to commits being pushed to hosted repositories.\n". | "React to commits being pushed to hosted repositories.\n". | ||||
"Hook rules can block changes and send push summary mail."); | "Hook rules can block changes and send push summary mail."); | ||||
} | } | ||||
public function isPreCommitRefAdapter() { | |||||
return false; | |||||
} | |||||
public function getFields() { | public function getFields() { | ||||
return array_merge( | return array_merge( | ||||
array( | array( | ||||
self::FIELD_BODY, | self::FIELD_BODY, | ||||
self::FIELD_AUTHOR, | self::FIELD_AUTHOR, | ||||
self::FIELD_AUTHOR_RAW, | self::FIELD_AUTHOR_RAW, | ||||
self::FIELD_COMMITTER, | self::FIELD_COMMITTER, | ||||
self::FIELD_COMMITTER_RAW, | self::FIELD_COMMITTER_RAW, | ||||
▲ Show 20 Lines • Show All 286 Lines • Show Last 20 Lines |