mirror of
https://github.com/iminet/dev.git
synced 2026-10-15 01:24:54 +02:00
Added ImgBB Test & Github Test applications with using environment variables
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
using System.Collections;
|
||||
using Octokit;
|
||||
|
||||
namespace Iminetsoft.Dev.GithubTest
|
||||
{
|
||||
public static class Program
|
||||
{
|
||||
public static async Task Main(string[] Args)
|
||||
{
|
||||
var args = Iminetcore.ConsoleParser.ArgParser.ParseDynamic(Args);
|
||||
|
||||
var github = new GitHubClient(new ProductHeaderValue("GithubTest"));
|
||||
github.Credentials = new Credentials(Environment.GetEnvironmentVariable("GITHUB_TOKEN"));
|
||||
|
||||
var repos = await github.Repository.GetAllForCurrent();
|
||||
|
||||
repos.ToList().ForEach(r => Console.WriteLine($"{r.Name}"));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user