Skip to content
This repository has been archived by the owner on Jan 18, 2020. It is now read-only.

Commit

Permalink
Adds temporary PullRequestReviewEventPayload until octokit/octokit.ne…
Browse files Browse the repository at this point in the history
…t#1767 is merged and packaged
  • Loading branch information
Cyberboss committed Feb 22, 2018
1 parent 83a04c8 commit 2586ffb
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions TGWebhooks/Controllers/PayloadsController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,8 @@ IActionResult StartJob<TPayload>() where TPayload : ActivityPayload
{
case "pull_request":
return StartJob<PullRequestEventPayload>();
case "pull_request_review":
return StartJob<PullRequestReviewEventPayload>();
default:
return Ok();
}
Expand Down
12 changes: 12 additions & 0 deletions TGWebhooks/PullRequestReviewEventPayload.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
using System.Diagnostics;

namespace Octokit
{
[DebuggerDisplay("{DebuggerDisplay,nq}")]
public class PullRequestReviewEventPayload : ActivityPayload
{
public string Action { get; protected set; }
public PullRequest PullRequest { get; protected set; }
public PullRequestReview Review { get; protected set; }
}
}

0 comments on commit 2586ffb

Please sign in to comment.