Skip to content

Commit 2770d58

Browse files
authored
Update GHCodeScanningAlert to get rule name (#18)
* Update GHCodeScanningAlert to get rule name * Update GHCodeScanningAlert to get rule name
1 parent c825722 commit 2770d58

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<modelVersion>4.0.0</modelVersion>
33
<groupId>org.kohsuke</groupId>
44
<artifactId>cortexapps-github-api</artifactId>
5-
<version>1.316</version>
5+
<version>1.317</version>
66
<name>GitHub API for Java</name>
77
<url>https://github-api.kohsuke.org/</url>
88
<description>GitHub API for Java</description>

src/main/java/org/kohsuke/github/GHCodeScanningAlert.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,15 @@ public String getSeverity() {
121121
return rule.severity;
122122
}
123123

124+
/**
125+
* Name of the code scanning rule that was violated
126+
*
127+
* @return the name
128+
*/
129+
public String getRuleName() {
130+
return rule.name;
131+
}
132+
124133
/**
125134
* Most recent instance of the alert
126135
*

0 commit comments

Comments
 (0)