aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-ws/src/main/protobuf/ws-projectbranches.proto
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2017-08-16 16:33:09 +0200
committerJanos Gyerik <janos.gyerik@sonarsource.com>2017-09-12 10:59:56 +0200
commitf48d90a276b5e962d2658bbf1a9fe2dc5af1064f (patch)
treef84a319a130ee90442565dd05cede0c87832cb55 /sonar-ws/src/main/protobuf/ws-projectbranches.proto
parent426593fb7e2035dd77a988998dd10332d2aebf53 (diff)
downloadsonarqube-f48d90a276b5e962d2658bbf1a9fe2dc5af1064f.tar.gz
sonarqube-f48d90a276b5e962d2658bbf1a9fe2dc5af1064f.zip
SONAR-9616 Move BranchType to Common
Diffstat (limited to 'sonar-ws/src/main/protobuf/ws-projectbranches.proto')
-rw-r--r--sonar-ws/src/main/protobuf/ws-projectbranches.proto13
1 files changed, 4 insertions, 9 deletions
diff --git a/sonar-ws/src/main/protobuf/ws-projectbranches.proto b/sonar-ws/src/main/protobuf/ws-projectbranches.proto
index 4500dc5a784..59f9e9038f5 100644
--- a/sonar-ws/src/main/protobuf/ws-projectbranches.proto
+++ b/sonar-ws/src/main/protobuf/ws-projectbranches.proto
@@ -24,6 +24,7 @@ option java_package = "org.sonarqube.ws";
option java_outer_classname = "WsBranches";
option optimize_for = SPEED;
+import "ws-commons.proto";
// WS api/project_branches/list
message ListWsResponse {
@@ -38,7 +39,7 @@ message ShowWsResponse {
message Branch {
optional string name = 1;
optional bool isMain = 2;
- optional BranchType type = 3;
+ optional sonarqube.ws.commons.BranchType type = 3;
// Merge branch is only present for short living branch
optional string mergeBranch = 4;
optional Status status = 5;
@@ -52,12 +53,6 @@ message Branch {
optional int32 codeSmells = 4;
}
- 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;
- }
}
+
+