mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-07 04:16:51 +00:00
Add method to check if repo vulnerability alerts are enabled (#2453)
This commit is contained in:
@@ -2055,4 +2055,15 @@ public class RepositoriesClientTests
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public class TheAreVulnerabilityAlertsEnabledMethod
|
||||
{
|
||||
[IntegrationTest]
|
||||
public async Task AreVulnerabilityAlertsEnabledReturnsTrue()
|
||||
{
|
||||
var github = Helper.GetAuthenticatedClient();
|
||||
var enabled = await github.Repository.AreVulnerabilityAlertsEnabled("owner", "name");
|
||||
Assert.True(enabled);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user