diff options
author | Sébastien Lesaint <sebastien.lesaint@sonarsource.com> | 2019-12-09 16:53:50 +0100 |
---|---|---|
committer | SonarTech <sonartech@sonarsource.com> | 2020-01-13 20:46:27 +0100 |
commit | a4200ecfa013c853f0c44b941d4365218af940fa (patch) | |
tree | b4edc2e02ab6f3c3b79c24e7c095aedb81fe7522 /sonar-ws | |
parent | b3cca30a9450f9064d698312b055b254b0bc2ab6 (diff) | |
download | sonarqube-a4200ecfa013c853f0c44b941d4365218af940fa.tar.gz sonarqube-a4200ecfa013c853f0c44b941d4365218af940fa.zip |
SONAR-12718 move User to ws-commons.proto
Diffstat (limited to 'sonar-ws')
-rw-r--r-- | sonar-ws/src/main/protobuf/ws-commons.proto | 7 | ||||
-rw-r--r-- | sonar-ws/src/main/protobuf/ws-issues.proto | 25 |
2 files changed, 16 insertions, 16 deletions
diff --git a/sonar-ws/src/main/protobuf/ws-commons.proto b/sonar-ws/src/main/protobuf/ws-commons.proto index e688e6212c9..f94db9af466 100644 --- a/sonar-ws/src/main/protobuf/ws-commons.proto +++ b/sonar-ws/src/main/protobuf/ws-commons.proto @@ -105,6 +105,13 @@ message Location { optional string msg = 3; } +message User { + optional string login = 1; + optional string name = 2; + optional string avatar = 3; + optional bool active = 4; +} + message Changelog { optional string user = 1; optional string userName = 2; diff --git a/sonar-ws/src/main/protobuf/ws-issues.proto b/sonar-ws/src/main/protobuf/ws-issues.proto index 7ab70dcbff6..fa6c6f65f16 100644 --- a/sonar-ws/src/main/protobuf/ws-issues.proto +++ b/sonar-ws/src/main/protobuf/ws-issues.proto @@ -53,49 +53,49 @@ message Operation { optional Issue issue = 1; repeated Component components = 2; repeated sonarqube.ws.commons.Rule rules = 3; - repeated Users.User users = 4; + repeated sonarqube.ws.commons.User users = 4; } message AddCommentResponse { optional Issue issue = 1; repeated Component components = 2; repeated sonarqube.ws.commons.Rule rules = 3; - repeated Users.User users = 4; + repeated sonarqube.ws.commons.User users = 4; } message AssignResponse { optional Issue issue = 1; repeated Component components = 2; repeated sonarqube.ws.commons.Rule rules = 3; - repeated Users.User users = 4; + repeated sonarqube.ws.commons.User users = 4; } message DeleteCommentResponse { optional Issue issue = 1; repeated Component components = 2; repeated sonarqube.ws.commons.Rule rules = 3; - repeated Users.User users = 4; + repeated sonarqube.ws.commons.User users = 4; } message DoTransitionResponse { optional Issue issue = 1; repeated Component components = 2; repeated sonarqube.ws.commons.Rule rules = 3; - repeated Users.User users = 4; + repeated sonarqube.ws.commons.User users = 4; } message SetSeverityResponse { optional Issue issue = 1; repeated Component components = 2; repeated sonarqube.ws.commons.Rule rules = 3; - repeated Users.User users = 4; + repeated sonarqube.ws.commons.User users = 4; } message SetTagsResponse { optional Issue issue = 1; repeated Component components = 2; repeated sonarqube.ws.commons.Rule rules = 3; - repeated Users.User users = 4; + repeated sonarqube.ws.commons.User users = 4; } message SetTypeResponse { optional Issue issue = 1; repeated Component components = 2; repeated sonarqube.ws.commons.Rule rules = 3; - repeated Users.User users = 4; + repeated sonarqube.ws.commons.User users = 4; } message TagsResponse { repeated string tags = 1; @@ -238,14 +238,7 @@ message BulkChangeWsResponse { } message Users { - repeated User users = 1; - - message User { - optional string login = 1; - optional string name = 2; - optional string avatar = 3; - optional bool active = 4; - } + repeated sonarqube.ws.commons.User users = 1; } // Response of GET api/issues/authors |