aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-ws
diff options
context:
space:
mode:
authorLukasz Jarocki <lukasz.jarocki@sonarsource.com>2022-06-01 07:02:20 +0200
committersonartech <sonartech@sonarsource.com>2022-06-01 20:03:01 +0000
commit60d9c659e3c739c095ead0c20779b70605924565 (patch)
treed05dad37153db7851003efaecc235bfe430a6f13 /sonar-ws
parenta5b423674c8da134b60f464857fed2ea3df74b01 (diff)
downloadsonarqube-60d9c659e3c739c095ead0c20779b70605924565.tar.gz
sonarqube-60d9c659e3c739c095ead0c20779b70605924565.zip
SONAR-16370 added new endpoint api/issues/pull
Diffstat (limited to 'sonar-ws')
-rw-r--r--sonar-ws/src/main/java/org/sonarqube/ws/client/issue/IssuesWsParameters.java1
-rw-r--r--sonar-ws/src/main/protobuf/ws-issues.proto31
2 files changed, 32 insertions, 0 deletions
diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/issue/IssuesWsParameters.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/issue/IssuesWsParameters.java
index f0371feaff0..11663d66446 100644
--- a/sonar-ws/src/main/java/org/sonarqube/ws/client/issue/IssuesWsParameters.java
+++ b/sonar-ws/src/main/java/org/sonarqube/ws/client/issue/IssuesWsParameters.java
@@ -38,6 +38,7 @@ public class IssuesWsParameters {
public static final String ACTION_SET_TAGS = "set_tags";
public static final String ACTION_SET_TYPE = "set_type";
public static final String ACTION_BULK_CHANGE = "bulk_change";
+ public static final String ACTION_PULL = "pull";
public static final String PARAM_ISSUE = "issue";
public static final String PARAM_COMMENT = "comment";
diff --git a/sonar-ws/src/main/protobuf/ws-issues.proto b/sonar-ws/src/main/protobuf/ws-issues.proto
index 00d184a98f4..9f7bc31bf5a 100644
--- a/sonar-ws/src/main/protobuf/ws-issues.proto
+++ b/sonar-ws/src/main/protobuf/ws-issues.proto
@@ -235,5 +235,36 @@ message AuthorsResponse {
repeated string authors = 1;
}
+// Response of GET api/issues/pull
+message IssuesPullQueryTimestamp {
+ required int64 queryTimestamp = 1;
+}
+
+message TextRange {
+ optional int32 startLine = 1;
+ optional int32 startLineOffset = 2;
+ optional int32 endLine = 3;
+ optional int32 endLineOffset = 4;
+ optional string hash = 5;
+}
+
+message Location {
+ optional string filePath = 1;
+ optional string message = 2;
+ optional TextRange textRange = 3;
+}
+
+message IssueLite {
+ required string key = 1;
+ optional int64 creationDate = 2;
+ optional bool resolved = 3;
+ optional string ruleKey = 4;
+ optional string userSeverity = 5;
+ optional string type = 6;
+ optional Location mainLocation = 7;
+ optional bool closed = 8;
+}
+
+