diff options
author | Julien Lancelot <julien.lancelot@sonarsource.com> | 2017-08-11 16:47:52 +0200 |
---|---|---|
committer | Janos Gyerik <janos.gyerik@sonarsource.com> | 2017-09-12 10:59:56 +0200 |
commit | 6c2f4c44314bf78d6c6d5aa034bada22d9f6caef (patch) | |
tree | e01f0dac006bf4208a72c6a665ca062c0840558b /sonar-ws | |
parent | 0a5d420a59a1660327ce9d132f4e57e2fcbe76f6 (diff) | |
download | sonarqube-6c2f4c44314bf78d6c6d5aa034bada22d9f6caef.tar.gz sonarqube-6c2f4c44314bf78d6c6d5aa034bada22d9f6caef.zip |
SONAR-9616 Add UT on main branch in api/projectbranches/list
Diffstat (limited to 'sonar-ws')
-rw-r--r-- | sonar-ws/src/main/protobuf/ws-projectbranches.proto | 24 |
1 files changed, 17 insertions, 7 deletions
diff --git a/sonar-ws/src/main/protobuf/ws-projectbranches.proto b/sonar-ws/src/main/protobuf/ws-projectbranches.proto index ea51ef7184a..3b32bc08fb8 100644 --- a/sonar-ws/src/main/protobuf/ws-projectbranches.proto +++ b/sonar-ws/src/main/protobuf/ws-projectbranches.proto @@ -28,13 +28,24 @@ option optimize_for = SPEED; // WS api/project_branches/list message ListWsResponse { repeated Branch branches = 1; +} - message Branch { - optional string name = 1; - optional bool isMain = 2; - optional BranchType type = 3; - // Merge branch is only present if it's a short living branch - optional string mergeBranch = 4; +message Branch { + optional string name = 1; + optional string project = 2; + optional bool isMain = 3; + optional BranchType type = 4; + // Merge branch is only present for short living branch + optional string mergeBranch = 5; + optional Status status = 6; + + message Status { + // Quality gate status is only present for long living branch + optional string qualityGateStatus = 1; + // Merge bugs, vulnerabilities and codeSmell are only present for short living branch + optional string bugs = 2; + optional string vulnerabilities = 3; + optional string codeSmell = 4; } enum BranchType { @@ -45,5 +56,4 @@ message ListWsResponse { LONG = 1; SHORT = 2; } - } |