Changeset View
Changeset View
Standalone View
Standalone View
src/applications/herald/adapter/HeraldCommitAdapter.php
Show All 36 Lines | final class HeraldCommitAdapter extends HeraldAdapter { | ||||
public function getAdapterContentType() { | public function getAdapterContentType() { | ||||
return 'commit'; | return 'commit'; | ||||
} | } | ||||
public function getAdapterContentName() { | public function getAdapterContentName() { | ||||
return pht('Commits'); | return pht('Commits'); | ||||
} | } | ||||
public function getAdapterContentDescription() { | |||||
return pht( | |||||
"React to new commits appearing in tracked repositories.\n". | |||||
"Commit rules can send email, flag commits, trigger audits, ". | |||||
"and run build plans."); | |||||
} | |||||
public function getFieldNameMap() { | public function getFieldNameMap() { | ||||
return array( | return array( | ||||
self::FIELD_NEED_AUDIT_FOR_PACKAGE => | self::FIELD_NEED_AUDIT_FOR_PACKAGE => | ||||
pht('Affected packages that need audit'), | pht('Affected packages that need audit'), | ||||
self::FIELD_REPOSITORY_AUTOCLOSE_BRANCH => pht('On autoclose branch'), | self::FIELD_REPOSITORY_AUTOCLOSE_BRANCH => pht('On autoclose branch'), | ||||
) + parent::getFieldNameMap(); | ) + parent::getFieldNameMap(); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 385 Lines • Show Last 20 Lines |