Search in sources :

Example 1 with CreateDiffRequest

use of com.google.startupos.tools.reviewer.local_server.service.Protos.CreateDiffRequest in project startup-os by google.

the class DiffCommand method run.

@Override
public boolean run(String[] args) {
    Flags.parseCurrentPackage(args);
    Diff diff = (diffNumber == -1) ? createDiff() : updateDiff(diffNumber);
    CreateDiffRequest request = CreateDiffRequest.newBuilder().setDiff(diff).build();
    // TODO: Check if we changed diff, update only if changed. Write to output if no change.
    // TODO: Rename createDiff to createOrUpdateDiff
    codeReviewBlockingStub.createDiff(request);
    return true;
}
Also used : Diff(com.google.startupos.tools.reviewer.local_server.service.Protos.Diff) CreateDiffRequest(com.google.startupos.tools.reviewer.local_server.service.Protos.CreateDiffRequest)

Aggregations

CreateDiffRequest (com.google.startupos.tools.reviewer.local_server.service.Protos.CreateDiffRequest)1 Diff (com.google.startupos.tools.reviewer.local_server.service.Protos.Diff)1