0

这是使用 Octokit 的 C# 代码,我用于 Github 客户端并创建存储库,但我无法将其配置为启用网站,我们可以从存储库的设置中手动执行此操作。

var productInformation = new ProductHeaderValue(GitHubIdentity);
var credentials = new Credentials(username, password, AuthenticationType.Basic);
var client = new GitHubClient(productInformation) { Credentials = credentials };

这是 API https://github.com/octokit/octokit.net的链接

4

0 回答 0