1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-13 10:22:42 +01:00
phorge-phorge/src/applications/herald/storage
epriestley 2cfc3acf32 Allow Herald pre-commit rules to act on repository projects
Summary:
Fixes T4264. Adds:

  - New "Repository's projects" field to Herald pre-commit rules, so you can write global rules which act based on projects.
  - Allows pre-ref/pre-content rules to bind to projects, and fire for all repositories in that project, so users with limited power can write rules which apply to many repositories.
  - The pre-ref and pre-content classes were starting to share a fair amount of code, so I made them both extend an abstract base class.

Test Plan: Wrote new pre-ref and pre-content rules bound to projects, then pushed commits into repositories in those projects and not in those projects. The "repository projects" field populated, and the rules fired for repositories in the relevant projects.

Reviewers: btrahan

Reviewed By: btrahan

CC: aran

Maniphest Tasks: T4264

Differential Revision: https://secure.phabricator.com/D7883
2014-01-03 12:24:28 -08:00
..
__tests__ Truncate object fields in Herald transcripts 2013-12-18 11:59:53 -08:00
transcript Truncate object fields in Herald transcripts 2013-12-18 11:59:53 -08:00
HeraldAction.php Delete license headers from files 2012-11-05 11:16:51 -08:00
HeraldCondition.php Delete license headers from files 2012-11-05 11:16:51 -08:00
HeraldDAO.php Delete license headers from files 2012-11-05 11:16:51 -08:00
HeraldRule.php Allow Herald pre-commit rules to act on repository projects 2014-01-03 12:24:28 -08:00
HeraldRuleEdit.php Delete license headers from files 2012-11-05 11:16:51 -08:00
HeraldRuleTransaction.php Allow Herald rules to be disabled, instead of deleted 2013-10-06 17:10:29 -07:00
HeraldRuleTransactionComment.php Add ApplicationTransactions to Herald 2013-08-07 18:03:49 -07:00