Plugin API: Add method for adding reviewers with string as argument
This change simplifies adding reviewers. Change-Id: I5ec0b5d22f7f3a41fbadf889e8b4c82be5a52e5c
This commit is contained in:
parent
90f9e89ce9
commit
256f9f4afd
@ -33,4 +33,5 @@ public interface ChangeApi {
|
||||
ChangeApi revert(RevertInput in) throws RestApiException;
|
||||
|
||||
void addReviewer(AddReviewerInput in) throws RestApiException;
|
||||
void addReviewer(String in) throws RestApiException;
|
||||
}
|
||||
|
@ -137,6 +137,13 @@ class ChangeApiImpl implements ChangeApi {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addReviewer(String reviewer) throws RestApiException {
|
||||
AddReviewerInput in = new AddReviewerInput();
|
||||
in.reviewer = reviewer;
|
||||
addReviewer(in);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addReviewer(AddReviewerInput in) throws RestApiException {
|
||||
try {
|
||||
|
Loading…
Reference in New Issue
Block a user