1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-10-24 09:38:50 +02:00
phorge-arcanist/src/workflow
epriestley 79da3a6ff9 Remove client-side commit message validation from Arcanist
Summary:
Commit templates are fully configurable on the server now, so we should be doing
validation there, since an install can add or remove fields and change
validation rules. Remove these outdated client validations, as per comment.

Also update the API call to use the 'errors' field, which allows us to show the
user all the parse errors at once. See:

https://secure.phabricator.com/diffusion/P/browse/origin:master/src/applications/conduit/method/differential/parsecommitmessage/ConduitAPI_differential_parsecommitmessage_Method.php;cfaab709df37739b$75

Test Plan:
Ran "arc diff" on a change with multiple errors:

```$ arc diff --conduit-uri=http://local.aphront.com/
Usage Exception: Commit message is not properly formatted:

Error parsing field 'Reviewers': Commit message references nonexistent users:
jjjderp.
Error parsing field 'CC': Commit message references nonexistent users and
mailing lists: jjjderp.

You should use the standard git commit template to provide a commit message. If
you only want to create a diff (not a revision), use --preview to ignore commit
messages.```

Reviewers: btrahan, jungejason

Reviewed By: btrahan

CC: aran, btrahan

Differential Revision: 1154
2011-12-02 07:29:31 -08:00
..
amend Don't do working copy checks for "arc amend --show" 2011-10-24 23:37:47 -07:00
base make arc patch issue a warning if applying a patch against a different project 2011-12-01 09:44:55 -08:00
branch Fix "arc branch" to work if you are on "(no branch)" add revision IDs 2011-06-29 13:30:44 -07:00
call-conduit Move Conduit management into Workflow 2011-07-15 12:38:45 -07:00
commit Allow modification of the svn commit message via an event listener 2011-11-16 16:40:19 -08:00
cover Some documentation. 2011-02-19 11:36:08 -08:00
diff Remove client-side commit message validation from Arcanist 2011-12-02 07:29:31 -08:00
download Provide "arc upload --json" 2011-08-01 17:44:43 -07:00
exception/notsupported Add an "arc merge" workflow 2011-09-15 07:42:45 -07:00
export make arc patch issue a warning if applying a patch against a different project 2011-12-01 09:44:55 -08:00
git-hook-pre-receive Automatically detect when to mark revisions committed 2011-09-27 11:06:02 -07:00
help 'arc liberate', convenience wrapper for various libphutil operations 2011-05-17 09:53:19 -07:00
install-certificate From Arcanist, send 'host' to server for validation on setup workflows 2011-07-05 10:10:28 -07:00
liberate Fix documentation: stop __init__ rendering in bold 2011-08-04 14:09:13 +01:00
lint Fix "arc lint" exploding on new directories 2011-11-03 14:28:04 -07:00
list Deprecate ArcanistBaseWorkflow::getUserGUID in favor of "PHID" 2011-07-15 12:52:17 -07:00
mark-committed Check that rev is accepted in arc mark-committed --finalize 2011-11-10 16:18:17 -08:00
merge Automatically detect when to mark revisions committed 2011-09-27 11:06:02 -07:00
paste Provide "arc upload --json" 2011-08-01 17:44:43 -07:00
patch make arc patch issue a warning if applying a patch against a different project 2011-12-01 09:44:55 -08:00
shell-complete Some documentation. 2011-02-19 11:36:08 -08:00
svn-hook-pre-commit Fix issue with svn-hook-pre-commit when resolving .arcconfig for nested 2011-03-05 00:49:52 -08:00
unit Document paths parameter in arc unit 2011-11-30 15:23:09 -08:00
upload Provide "arc upload --json" 2011-08-01 17:44:43 -07:00