Skip to content

Commit 0faddc9

Browse files
authored
Make secret scanning method public (#34)
* Make secret scanning method public * Make secret scanning method public * Make secret scanning method public * Make secret scanning method public * Make secret scanning method public
1 parent bee3d6f commit 0faddc9

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
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.328</version>
5+
<version>1.329</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/GHRepository.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3516,7 +3516,14 @@ public PagedIterable<GHSecretScanningAlert> listSecretScanningAlerts(GHSecretSca
35163516
return listSecretScanningAlerts(Collections.singletonMap("state", state.name().toLowerCase()));
35173517
}
35183518

3519-
private PagedIterable<GHSecretScanningAlert> listSecretScanningAlerts(Map<String, Object> filters) {
3519+
/**
3520+
* Lists the secret scanning alerts for this repository filtered based on passed query params
3521+
*
3522+
* @param filters
3523+
* query param passed to request
3524+
* @return the paged iterable
3525+
*/
3526+
public PagedIterable<GHSecretScanningAlert> listSecretScanningAlerts(Map<String, Object> filters) {
35203527
return new GHSecretScanningAlertsIterable(this,
35213528
root().createRequest().withUrlPath(getApiTailUrl("secret-scanning/alerts")).with(filters).build());
35223529
}

0 commit comments

Comments
 (0)