我正在尝试编写一个脚本,它将打开在控制台中键入的问题。class Program public async static Task Main() var client = new GitHubClient(new ProductHeaderValue("test-app")); var tokenAuth = new Credentials(APIKe
我有一个小项目,用于更新GitHub repos中的各种设置。尽管我找到了存储库,但Edit方法抛出了NotFoundException。有什么建议可能是错的吗?我从“主控”变成了“开发”,两者都存在。 public async Task<Repository> SetDefaultBranch(string repository, string branch) //var repo = await _client.Repository.Get(_owner, update.Name);
// the repo is found, but afterwards I
这是我目前使用的代码。它会删除文件的内容,并用新内容替换它。var updatefile =client.Repository.Content.UpdateFile(owner,repo,targetFile,
new UpdateFileRequest("API File update", "Added this new line new ", readfi