aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-ws/src/main/protobuf
diff options
context:
space:
mode:
Diffstat (limited to 'sonar-ws/src/main/protobuf')
-rw-r--r--sonar-ws/src/main/protobuf/ws-ce.proto2
-rw-r--r--sonar-ws/src/main/protobuf/ws-commons.proto1
-rw-r--r--sonar-ws/src/main/protobuf/ws-components.proto1
-rw-r--r--sonar-ws/src/main/protobuf/ws-duplications.proto1
-rw-r--r--sonar-ws/src/main/protobuf/ws-issues.proto2
-rw-r--r--sonar-ws/src/main/protobuf/ws-measures.proto1
-rw-r--r--sonar-ws/src/main/protobuf/ws-projectbranches.proto17
-rw-r--r--sonar-ws/src/main/protobuf/ws-projectpullrequests.proto49
-rw-r--r--sonar-ws/src/main/protobuf/ws-tests.proto2
9 files changed, 67 insertions, 9 deletions
diff --git a/sonar-ws/src/main/protobuf/ws-ce.proto b/sonar-ws/src/main/protobuf/ws-ce.proto
index dc18f7cb87e..5787a326e5e 100644
--- a/sonar-ws/src/main/protobuf/ws-ce.proto
+++ b/sonar-ws/src/main/protobuf/ws-ce.proto
@@ -92,6 +92,8 @@ message Task {
optional string branch = 21;
optional sonarqube.ws.commons.BranchType branchType = 22;
optional string errorType = 23;
+ optional string pullRequest = 24;
+ optional string pullRequestTitle = 25;
}
enum TaskStatus {
diff --git a/sonar-ws/src/main/protobuf/ws-commons.proto b/sonar-ws/src/main/protobuf/ws-commons.proto
index b5b0167e8d0..947e2487657 100644
--- a/sonar-ws/src/main/protobuf/ws-commons.proto
+++ b/sonar-ws/src/main/protobuf/ws-commons.proto
@@ -127,4 +127,5 @@ enum BranchType {
LONG = 1;
SHORT = 2;
+ PULL_REQUEST = 3;
}
diff --git a/sonar-ws/src/main/protobuf/ws-components.proto b/sonar-ws/src/main/protobuf/ws-components.proto
index 73059133649..a995eb42cbc 100644
--- a/sonar-ws/src/main/protobuf/ws-components.proto
+++ b/sonar-ws/src/main/protobuf/ws-components.proto
@@ -122,6 +122,7 @@ message Component {
optional string project = 17;
optional string branch = 18;
optional string version = 19;
+ optional string pullRequest = 20;
message Tags {
repeated string tags = 1;
diff --git a/sonar-ws/src/main/protobuf/ws-duplications.proto b/sonar-ws/src/main/protobuf/ws-duplications.proto
index 6eeb5f29a32..98cbe46885c 100644
--- a/sonar-ws/src/main/protobuf/ws-duplications.proto
+++ b/sonar-ws/src/main/protobuf/ws-duplications.proto
@@ -52,4 +52,5 @@ message File {
string subProjectUuid = 8;
string subProjectName = 9;
string branch = 10;
+ string pullRequest = 11;
}
diff --git a/sonar-ws/src/main/protobuf/ws-issues.proto b/sonar-ws/src/main/protobuf/ws-issues.proto
index c869c9c1ff3..125f6e4c216 100644
--- a/sonar-ws/src/main/protobuf/ws-issues.proto
+++ b/sonar-ws/src/main/protobuf/ws-issues.proto
@@ -156,6 +156,7 @@ message Issue {
optional string organization = 29;
optional string branch = 30;
+ optional string pullRequest = 32;
}
message Transitions {
@@ -234,6 +235,7 @@ message Component {
optional int64 unusedProjectId = 9;
optional int64 unusedSubProjectId = 10;
optional string branch = 12;
+ optional string pullRequest = 13;
}
// Response of GET api/issues/changelog
diff --git a/sonar-ws/src/main/protobuf/ws-measures.proto b/sonar-ws/src/main/protobuf/ws-measures.proto
index 36cd4ab6174..c861426c3ea 100644
--- a/sonar-ws/src/main/protobuf/ws-measures.proto
+++ b/sonar-ws/src/main/protobuf/ws-measures.proto
@@ -76,6 +76,7 @@ message Component {
optional string language = 10;
repeated Measure measures = 11;
optional string branch = 12;
+ optional string pullRequest = 13;
}
message Period {
diff --git a/sonar-ws/src/main/protobuf/ws-projectbranches.proto b/sonar-ws/src/main/protobuf/ws-projectbranches.proto
index 55d8e4032ce..e75439ab06e 100644
--- a/sonar-ws/src/main/protobuf/ws-projectbranches.proto
+++ b/sonar-ws/src/main/protobuf/ws-projectbranches.proto
@@ -45,16 +45,15 @@ message Branch {
optional Status status = 5;
optional bool isOrphan = 6;
optional string analysisDate = 7;
+}
- 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 int64 bugs = 2;
- optional int64 vulnerabilities = 3;
- optional int64 codeSmells = 4;
- }
-
+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 int64 bugs = 2;
+ optional int64 vulnerabilities = 3;
+ optional int64 codeSmells = 4;
}
diff --git a/sonar-ws/src/main/protobuf/ws-projectpullrequests.proto b/sonar-ws/src/main/protobuf/ws-projectpullrequests.proto
new file mode 100644
index 00000000000..e6bc0300953
--- /dev/null
+++ b/sonar-ws/src/main/protobuf/ws-projectpullrequests.proto
@@ -0,0 +1,49 @@
+// SonarQube, open source software quality management tool.
+// Copyright (C) 2008-2016 SonarSource
+// mailto:contact AT sonarsource DOT com
+//
+// SonarQube is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 3 of the License, or (at your option) any later version.
+//
+// SonarQube is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public License
+// along with this program; if not, write to the Free Software Foundation,
+// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+
+syntax = "proto2";
+
+package sonarqube.ws.projectpullrequest;
+
+option java_package = "org.sonarqube.ws";
+option java_outer_classname = "ProjectPullRequests";
+option optimize_for = SPEED;
+
+import "ws-commons.proto";
+
+// WS api/project_pull_requests/list
+message ListWsResponse {
+ repeated PullRequest pullRequests = 1;
+}
+
+message PullRequest {
+ optional string key = 1;
+ optional string title = 2;
+ optional string branch = 3;
+ optional string base = 4;
+ optional Status status = 5;
+ optional bool isOrphan = 6;
+ optional string analysisDate = 7;
+ optional string url = 8;
+}
+
+message Status {
+ optional int64 bugs = 2;
+ optional int64 vulnerabilities = 3;
+ optional int64 codeSmells = 4;
+}
diff --git a/sonar-ws/src/main/protobuf/ws-tests.proto b/sonar-ws/src/main/protobuf/ws-tests.proto
index 74865970ca6..6d389e735bd 100644
--- a/sonar-ws/src/main/protobuf/ws-tests.proto
+++ b/sonar-ws/src/main/protobuf/ws-tests.proto
@@ -42,6 +42,7 @@ message CoveredFilesResponse {
optional string longName = 3;
optional int32 coveredLines = 4;
optional string branch = 5;
+ optional string pullRequest = 6;
}
}
@@ -58,6 +59,7 @@ message Test {
optional string message = 9;
optional string stacktrace = 10;
optional string fileBranch = 11;
+ optional string filePullRequest = 12;
}
enum TestStatus {