Skip to content

Commit 752b07b

Browse files
committed
Commenting with file name from server
1 parent d0e9851 commit 752b07b

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ repositories {
6868
}
6969

7070
dependencies {
71-
compile 'se.bjurr.violations:violation-comments-lib:1.24'
71+
compile 'se.bjurr.violations:violation-comments-lib:1.30'
7272
compile 'com.jayway.jsonpath:json-path:2.0.0'
7373
compile 'com.google.code.gson:gson:2.8.0'
7474
compile 'com.google.guava:guava:20.0'

src/main/java/se/bjurr/violations/comments/bitbucketserver/lib/BitbucketServerCommentsProvider.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626
import se.bjurr.violations.comments.lib.model.ChangedFile;
2727
import se.bjurr.violations.comments.lib.model.Comment;
2828
import se.bjurr.violations.comments.lib.model.CommentsProvider;
29+
import se.bjurr.violations.lib.model.Violation;
30+
import se.bjurr.violations.lib.util.Optional;
2931

3032
public class BitbucketServerCommentsProvider implements CommentsProvider {
3133

@@ -160,4 +162,9 @@ public boolean shouldCreateCommentWithAllSingleFileComments() {
160162
public boolean shouldCreateSingleFileComment() {
161163
return violationCommentsToBitbucketApi.getCreateSingleFileComments();
162164
}
165+
166+
@Override
167+
public Optional<String> findCommentFormat(ChangedFile changedFile, Violation violation) {
168+
return Optional.absent();
169+
}
163170
}

0 commit comments

Comments
 (0)