Skip to content

Commit 737fb63

Browse files
authored
Add commit author to Java SDK (#74)
Fixes PLAT-2230
1 parent e3ce7f9 commit 737fb63

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/main/java/ai/nightfall/scan/model/Location.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ public class Location {
1818
@JsonProperty("commitHash")
1919
private String commitHash;
2020

21+
@JsonProperty("commitAuthor")
22+
private String commitAuthor;
23+
2124
@JsonProperty("rowRange")
2225
private Range rowRange;
2326

@@ -70,12 +73,22 @@ public String getCommitHash() {
7073
return commitHash;
7174
}
7275

76+
/**
77+
* Get the finding's commit author.
78+
*
79+
* @return the author of the commit in which a finding was detected if known.
80+
*/
81+
public String getCommitAuthor() {
82+
return commitAuthor;
83+
}
84+
7385
@Override
7486
public String toString() {
7587
return "Location{"
7688
+ "byteRange=" + byteRange
7789
+ ", codepointRange=" + codepointRange
7890
+ ", commitHash=" + commitHash
91+
+ ", commitAuthor=" + commitAuthor
7992
+ '}';
8093
}
8194

0 commit comments

Comments
 (0)