diff options
Diffstat (limited to 'sonar-ws/src')
-rw-r--r-- | sonar-ws/src/main/protobuf/ws-projects.proto | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/sonar-ws/src/main/protobuf/ws-projects.proto b/sonar-ws/src/main/protobuf/ws-projects.proto index 8668ffc355a..069db2f37f7 100644 --- a/sonar-ws/src/main/protobuf/ws-projects.proto +++ b/sonar-ws/src/main/protobuf/ws-projects.proto @@ -84,3 +84,24 @@ message BulkUpdateKeyWsResponse { optional bool duplicate = 3; } } + +// WS api/projects/branches +message BranchesWsResponse { + repeated Branch branches = 1; + + message Branch { + optional string name = 1; + optional bool isMain = 2; + optional BranchType type = 3; + } + + enum BranchType { + // Zero is required in order to not get MAINTAINABILITY as default value + // See http://androiddevblog.com/protocol-buffers-pitfall-adding-enum-values/ + UNKNOWN = 0; + + LONG = 1; + SHORT = 2; + } + +} |