From 7da3b6dacf99ace52e4175fa27fee6e1ae3de4a9 Mon Sep 17 00:00:00 2001
From: Bradley Ray <89326133+bradley-ray@users.noreply.github.com>
Date: Thu, 23 Sep 2021 00:10:50 -0500
Subject: [PATCH] added case PullRequestReviewEvent to generateEvent
---
app/helpers/github.js | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/app/helpers/github.js b/app/helpers/github.js
index a75efe8..c83f4a1 100644
--- a/app/helpers/github.js
+++ b/app/helpers/github.js
@@ -180,6 +180,23 @@ function generateEvent(event) {
title="View this pull request on GitHub"
>${escapeSpecialCharacters(event.payload.pull_request.title)} in
`;
+
+ case "PullRequestReviewEvent":
+ return `
+ ${event.actor.display_login} reviewed pull request
+
+ ${escapeSpecialCharacters(event.payload.pull_request.title)} in
+ `;
case "PullRequestReviewCommentEvent":
return `
--
2.45.2