2

我是新手Octokit.Net

我想在我的程序中创建问题......

所以我这样编码。

var github = new GitHubClient(new ProductHeaderValue("Hello"));

var i = new NewIssue("asdf");
i.Body = "asdf";

var issue = github.Issue.Create("JoyLeeSoft", "test", i);

当我调用Create 函数时,函数总是抛出NotFoundException.

错误消息只是“未找到”

但是,存储库是可用的。https://github.com/JoyLeeSoft/test

我该如何解决这个问题?

4

1 回答 1

0

创建问题意味着首先进行正确的身份验证(如Tests/Authentication/BasicAuthenticatorTests.cs

如果没有认证,GitHub 的默认响应可以是“repository not found”。

于 2014-09-14T14:28:04.827 回答