Skip to content

Commit 6606122

Browse files
Gregory PettGregory Pett
authored andcommitted
adding items for test
1 parent a56483a commit 6606122

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-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.324</version>
5+
<version>1.325</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: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ static class Rule {
166166
private String full_description;
167167
private String[] tags;
168168
private String help;
169+
private String security_severity_level;
169170

170171
/**
171172
* Id of rule
@@ -229,6 +230,8 @@ public String[] getTags() {
229230
public String getHelp() {
230231
return help;
231232
}
233+
234+
public String getSecuritySeverityLevel() { return security_severity_level; }
232235
}
233236

234237
/**

src/test/java/org/kohsuke/github/GHCodeScanningAlertTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ public void testListCodeScanningAlerts() {
6262
assertThat(rule.getId(), not((Object) null));
6363
assertThat(rule.getName(), not((Object) null));
6464
assertThat(rule.getSeverity(), not((Object) null));
65+
assertThat(rule.getSecuritySeverityLevel(), not((Object) null));
6566

6667
// Act - Search by filtering on alert status
6768
List<GHCodeScanningAlert> openAlerts = repo.listCodeScanningAlerts(GHCodeScanningAlertState.OPEN)

0 commit comments

Comments
 (0)