diff --git a/TGWebhooks/Controllers/PayloadsController.cs b/TGWebhooks/Controllers/PayloadsController.cs index a331b8b..1bcaf55 100644 --- a/TGWebhooks/Controllers/PayloadsController.cs +++ b/TGWebhooks/Controllers/PayloadsController.cs @@ -222,6 +222,8 @@ IActionResult StartJob() where TPayload : ActivityPayload { case "pull_request": return StartJob(); + case "pull_request_review": + return StartJob(); default: return Ok(); } diff --git a/TGWebhooks/PullRequestReviewEventPayload.cs b/TGWebhooks/PullRequestReviewEventPayload.cs new file mode 100644 index 0000000..c588ff1 --- /dev/null +++ b/TGWebhooks/PullRequestReviewEventPayload.cs @@ -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; } + } +}