diff options
author | Lukasz Jarocki <lukasz.jarocki@sonarsource.com> | 2022-06-01 07:02:20 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2022-06-01 20:03:01 +0000 |
commit | 60d9c659e3c739c095ead0c20779b70605924565 (patch) | |
tree | d05dad37153db7851003efaecc235bfe430a6f13 /sonar-ws | |
parent | a5b423674c8da134b60f464857fed2ea3df74b01 (diff) | |
download | sonarqube-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.java | 1 | ||||
-rw-r--r-- | sonar-ws/src/main/protobuf/ws-issues.proto | 31 |
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; +} + + |