Add API for work in progress workflow

Change-Id: Idb0faa778977038cea336da38acdfb4089679618
This commit is contained in:
David Ostrovsky
2017-03-09 23:56:56 +01:00
parent 258849bd20
commit db40d0b961
4 changed files with 152 additions and 0 deletions

View File

@@ -87,6 +87,18 @@ public interface ChangeApi {
void setPrivate(boolean value) throws RestApiException;
void setWorkInProgress(String message) throws RestApiException;
void setReadyForReview(String message) throws RestApiException;
default void setWorkInProgress() throws RestApiException {
setWorkInProgress(null);
}
default void setReadyForReview() throws RestApiException {
setReadyForReview(null);
}
/**
* Ignore or un-ignore this change.
*
@@ -327,6 +339,16 @@ public interface ChangeApi {
throw new NotImplementedException();
}
@Override
public void setWorkInProgress(String message) {
throw new NotImplementedException();
}
@Override
public void setReadyForReview(String message) {
throw new NotImplementedException();
}
@Override
public ChangeApi revert() {
throw new NotImplementedException();