1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-28 09:42:41 +01:00
phorge-phorge/src/applications/conduit/method
epriestley 0be3db03ee Drive Differential commit message parsing through extensible fields
Summary:
I think this is the last major step -- use the fields to parse commit messages,
not a hard-coded list of stuff. This adds two primary methods to fields, one to
get all the labels they'll parse (so we can do "CC" and "CCs" and treat them as
the same field) and one to parse the string into a canonical representation
(e.g., lookup reviewers and such).

You'll need to impelement the one block of task-specific stuff I removed in
Facebook's task field:

  list($pre_comment) = split(' -- ', $data);
  $data = array_filter(preg_split('/[^\d]+/', $pre_comment));
  foreach ($data as $k => $v) {
    $data[$k] = (int)$v;
  }
  $data = array_unique($data);
  break;

Otherwise I think this is clean.

Test Plan:
  - Called the conduit method with various commit messages, parsed fields/errors
seemed correct.
  - "arc diff"'d this diff onto localhost, then updated it.
  - "arc amend"'d this diff.

Reviewers: jungejason, tuomaspelkonen, aran

Reviewed By: jungejason

CC: aran, jungejason, epriestley

Differential Revision: 829
2011-08-18 19:49:39 -07:00
..
base Create AphrontWriteGuard, a backup mechanism for CSRF validation 2011-08-16 13:29:57 -07:00
conduit Unguard conduit.getcertificate() so it can execute logging writes. 2011-08-17 12:26:30 -07:00
daemon These conduit methods SHOULD allow unguarded writes. 2011-08-16 13:38:14 -07:00
differential Drive Differential commit message parsing through extensible fields 2011-08-18 19:49:39 -07:00
diffusion Provide basic Conduit documentation. 2011-07-04 12:03:36 -07:00
feed/publish Build basic infrastructure for an activity feed 2011-07-06 16:19:29 -07:00
file Add a 'file.info' Conduit method 2011-07-29 11:41:16 -07:00
maniphest/info Tweak Maniphest custom fields 2011-08-15 08:39:18 -07:00
paste Provide a paste.create Conduit method 2011-07-29 19:00:04 -07:00
path/getowners Provide basic Conduit documentation. 2011-07-04 12:03:36 -07:00
slowvote/info Conduit method for slowvote.poll.info. 2011-07-13 20:00:50 -04:00
user Provide basic Conduit documentation. 2011-07-04 12:03:36 -07:00