Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/herald/HeraldPreCommitRefAdapter.php
Show All 28 Lines | final class HeraldPreCommitRefAdapter extends HeraldAdapter { | ||||
public function getObject() { | public function getObject() { | ||||
return $this->log; | return $this->log; | ||||
} | } | ||||
public function getAdapterContentName() { | public function getAdapterContentName() { | ||||
return pht('Commit Hook: Branches/Tags/Bookmarks'); | return pht('Commit Hook: Branches/Tags/Bookmarks'); | ||||
} | } | ||||
public function getAdapterSortOrder() { | |||||
return 2000; | |||||
} | |||||
public function getAdapterContentDescription() { | |||||
return pht( | |||||
"React to branches and tags being pushed to hosted repositories.\n". | |||||
"Hook rules can block changes."); | |||||
} | |||||
public function getFieldNameMap() { | public function getFieldNameMap() { | ||||
return array( | return array( | ||||
self::FIELD_REF_TYPE => pht('Ref type'), | self::FIELD_REF_TYPE => pht('Ref type'), | ||||
self::FIELD_REF_NAME => pht('Ref name'), | self::FIELD_REF_NAME => pht('Ref name'), | ||||
self::FIELD_REF_CHANGE => pht('Ref change type'), | self::FIELD_REF_CHANGE => pht('Ref change type'), | ||||
) + parent::getFieldNameMap(); | ) + parent::getFieldNameMap(); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 119 Lines • Show Last 20 Lines |