Skip to content
This repository was archived by the owner on Dec 2, 2022. It is now read-only.

Commit 5377a89

Browse files
author
Adam Warner (work)
committed
change up review dismissal text
1 parent 2697e1e commit 5377a89

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Matterhook.NET/Controllers/GitHubHookController.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,6 +424,7 @@ private static MattermostMessage GetMessagePullRequestReview(PullRequestReviewEv
424424
var repoMd = $"[{payload.repository.full_name}]({payload.repository.html_url})";
425425
var titleMd = $"[#{payload.pull_request.number} {payload.pull_request.title}]({payload.pull_request.html_url})";
426426
var userMd = $"[{payload.sender.login}]({payload.sender.html_url})";
427+
var reviewerMd = $"[{payload.review.user.login}]({payload.review.user.html_url})";
427428

428429
switch (payload.action)
429430
{
@@ -452,7 +453,7 @@ private static MattermostMessage GetMessagePullRequestReview(PullRequestReviewEv
452453
}
453454
break;
454455
case "dismissed":
455-
retVal.Text = $"{userMd} dismissed a [review]({payload.review.html_url}) on {titleMd} in {repoMd}";
456+
retVal.Text = $"A [review]({payload.review.html_url}) by {reviewerMd} was dismissed on {titleMd} in {repoMd}";
456457
break;
457458
default:
458459
throw new Exception($"Unhandled Event action: {payload.action}");

0 commit comments

Comments
 (0)