aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-ws
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2017-07-27 09:12:49 +0200
committerJanos Gyerik <janos.gyerik@sonarsource.com>2017-09-12 10:52:52 +0200
commit7515f738fb15473d144dd376fac2a1562486c049 (patch)
treecb3730c3af767dcdeb8894499d1f035b3b1ff70a /sonar-ws
parentc8a8f3eee907bf053af6dc6c9decde7de73249b3 (diff)
downloadsonarqube-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.proto21
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;
+ }
+
+}