How to automate add my c# application issues to Github programmatically

前端 未结 2 609

How can I programmatically add issues on my Github repository using C#?

I have an Error Handler library (ErrorControlSystem) to attach that in a win application to rai

2条回答
  •  旧时难觅i
    2021-02-06 03:55

    If you need to create issues on a GitHub repo programmatically with C#, you can refer to the C# project octokit/octokit.net which will use the GitHub API.

    It can create issue:

    var createIssue = new NewIssue("this thing doesn't work");
    var issue = await _issuesClient.Create("octokit", "octokit.net", createIssue);
    

    Create returns a Task which represents the created issue.

提交回复
热议问题