0

我有一个 ASP.NET MVC 操作方法来接收 GitHub webhook 推送。我已将我的 repo 配置为在更新时发送此 POST。

我需要将哪个 Octokit.Net 类用作此操作方法的参数?文档说它是pusheventclass ,但我在 Octokit 命名空间中的任何地方都找不到它。

如果可能的话,我宁愿使用 Octokit 类(或最合适的类)作为参数,而不是从中刮取Request

[HttpPost]
public ActionResult ReceiveFromGitHub()
{
   //which Octokit class to use in method signature?
   //catch the call from GitHub, do stuff.
   DoStuffWithJsonPosted(); 
   return new HttpStatusCodeResult(HttpStatusCode.OK);
}

截至本发布日期(2014 年 6 月),通过 NuGet 使用当前版本的 Octokit (0.3.4)。

Octokit.NET 有 webhook 类吗?

4

1 回答 1

0

Octokit.net 尚未实现 webhook 类,但我们希望有人能贡献出来!:)

于 2014-06-06T18:14:16.493 回答