Skip to content

Commit fe61da3

Browse files
Gregory PettGregory Pett
authored andcommitted
making severity gettable on the alert object
1 parent ccb805d commit fe61da3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,12 @@ public Rule getRule() {
112112
return rule;
113113
}
114114

115+
/**
116+
* Severity of the code scanning rule that was violated
117+
* @return the severity
118+
*/
119+
public String getSeverity() { return rule.severity; }
120+
115121
/**
116122
* Most recent instance of the alert
117123
*

0 commit comments

Comments
 (0)