diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2017-07-27 09:12:49 +0200 |
---|---|---|
committer | Janos Gyerik <janos.gyerik@sonarsource.com> | 2017-09-12 10:52:52 +0200 |
commit | 7515f738fb15473d144dd376fac2a1562486c049 (patch) | |
tree | cb3730c3af767dcdeb8894499d1f035b3b1ff70a /sonar-ws | |
parent | c8a8f3eee907bf053af6dc6c9decde7de73249b3 (diff) | |
download | sonarqube-7515f738fb15473d144dd376fac2a1562486c049.tar.gz sonarqube-7515f738fb15473d144dd376fac2a1562486c049.zip |
SONAR-9616 compute engine backend to support branches
Diffstat (limited to 'sonar-ws')
-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; + } + +} |