mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-04 03:16:11 +00:00
added environment variables for testing authorizations
This commit is contained in:
@@ -46,12 +46,22 @@ namespace Octokit.Tests.Integration
|
||||
}
|
||||
}
|
||||
|
||||
public static string ClientId
|
||||
{
|
||||
get { return Environment.GetEnvironmentVariable("OCTOKIT_CLIENTID"); }
|
||||
}
|
||||
|
||||
public static string ClientSecret
|
||||
{
|
||||
get { return Environment.GetEnvironmentVariable("OCTOKIT_CLIENTSECRET"); }
|
||||
}
|
||||
|
||||
public static void DeleteRepo(Repository repository)
|
||||
{
|
||||
if (repository != null)
|
||||
DeleteRepo(repository.Owner.Login, repository.Name);
|
||||
}
|
||||
|
||||
|
||||
public static void DeleteRepo(string owner, string name)
|
||||
{
|
||||
var api = GetAuthenticatedClient();
|
||||
|
||||
Reference in New Issue
Block a user