1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-22 21:40:55 +01:00
phorge-phorge/scripts
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
..
aphront Delete license headers from files 2012-11-05 11:16:51 -08:00
cache Update manage_cache.php 2013-11-21 12:36:00 -08:00
calendar Increment year. 2013-01-03 05:45:08 -08:00
celerity Drive all Celerity operations from the new map 2013-12-31 18:04:25 -08:00
daemon Add bin/phd log <id> to dump all logs to the CLI 2013-07-23 16:58:19 -07:00
differential Add DifferentialDiffQuery and change most callsites 2013-07-01 12:38:42 -07:00
diviner Make all bin/* scripts locate their workflows dynamically 2013-12-27 13:15:48 -08:00
drydock Make all bin/* scripts locate their workflows dynamically 2013-12-27 13:15:48 -08:00
fact Make all bin/* scripts locate their workflows dynamically 2013-12-27 13:15:48 -08:00
files Make all bin/* scripts locate their workflows dynamically 2013-12-27 13:15:48 -08:00
fpm Delete license headers from files 2012-11-05 11:16:51 -08:00
install Enable Evil^H^H^H^HJSON for PHP on Ubuntu 13.10 2014-01-02 11:59:12 -08:00
lipsum Make all bin/* scripts locate their workflows dynamically 2013-12-27 13:15:48 -08:00
mail Make all bin/* scripts locate their workflows dynamically 2013-12-27 13:15:48 -08:00
profile Delete license headers from files 2012-11-05 11:16:51 -08:00
repository Allow Herald pre-commit rules to act on repository projects 2014-01-03 12:24:28 -08:00
search Make all bin/* scripts locate their workflows dynamically 2013-12-27 13:15:48 -08:00
setup Begin construction of bin/celerity map 2013-12-31 18:02:41 -08:00
sql Make all bin/* scripts locate their workflows dynamically 2013-12-27 13:15:48 -08:00
ssh Provide a more helpful message if a user connects via raw SSH 2013-12-30 13:21:56 -08:00
symbols Bugfix for D7596 2013-11-17 20:19:49 -08:00
user Warn users about using bin/accountadmin for first time setup 2013-12-02 11:25:42 -08:00
util Provide 'bin/cache', for managing caches 2013-05-20 10:16:35 -07:00
__init_script__.php Consolidate environmental initialization 2012-12-25 06:15:28 -08:00
celerity_mapper.php Drive all Celerity operations from the new map 2013-12-31 18:04:25 -08:00