1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-21 22:32:41 +01:00
phorge-phorge/scripts/repository
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
..
audit.php Provide a more flexible script for administrative management of audits 2013-08-05 10:35:01 -07:00
commit_hook.php Allow Herald pre-commit rules to act on repository projects 2014-01-03 12:24:28 -08:00
manage_repositories.php Make all bin/* scripts locate their workflows dynamically 2013-12-27 13:15:48 -08:00
rebuild_summaries.php Delete license headers from files 2012-11-05 11:16:51 -08:00
reconcile.php Delete license headers from files 2012-11-05 11:16:51 -08:00
reparse.php Document reparse --min-date more, add validation 2013-04-05 07:35:35 -07:00
save_lint.php Save blame info to lint messages 2013-03-06 16:19:01 -08:00
test_connection.php Fix some repository URI handling issues in Git and Mercurial 2013-12-12 09:45:27 -08:00