in src/main/java/com/googlesource/gerrit/plugins/its/phabricator/PhabricatorItsFacade.java [78:103]
public void performAction(final String taskIdString, final String actionString)
throws IOException {
int taskId = Integer.parseInt(taskIdString);
String chopped[] = actionString.split(" ");
if (chopped.length >= 1) {
String action = chopped[0];
try {
switch (action) {
case "add-project":
assertParameters(action, chopped, 1);
conduit.maniphestEdit(taskId, null, chopped[1], null);
break;
case "remove-project":
assertParameters(action, chopped, 1);
conduit.maniphestEdit(taskId, null, null, chopped[1]);
break;
default:
throw new IOException("Unknown action " + action);
}
} catch (ConduitException e) {
throw new IOException("Could not perform action " + action, e);
}
} else {
throw new IOException("Could not parse action " + actionString);
}
}