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

Commit 09ff534

Browse files
author
Adam Warner
committed
Payload.assignee not payload.issue/pullrequest.assignee
1 parent 75a44a5 commit 09ff534

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Matterhook.NET/Controllers/GitHubHookController.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ private static MattermostMessage GetMessageIssues(IssuesEvent payload)
431431
retVal.Text = $"{userMd} removed label: `{payload.label.name}` from {titleMd} in {repoMd}";
432432
break;
433433
case "assigned":
434-
var asignMd = $"[{payload.issue.assignee.login}]({payload.issue.assignee.html_url})";
434+
var asignMd = $"[{payload.assignee.login}]({payload.assignee.html_url})";
435435
retVal.Text = $"{userMd} assigned {asignMd} to {titleMd} in {repoMd}";
436436
break;
437437
case "unassigned":
@@ -573,7 +573,7 @@ private static MattermostMessage GetMessagePullRequest(PullRequestEvent payload)
573573
retVal.Text = $"{userMd} closed pull request {titleMd} in {repoMd}";
574574
break;
575575
case "assigned":
576-
var asignMd = $"[{payload.pull_request.asignee.login}]({payload.pull_request.asignee.html_url})";
576+
var asignMd = $"[{payload.assignee.login}]({payload.assignee.html_url})";
577577
retVal.Text = $"{userMd} assigned {asignMd} to {titleMd} in {repoMd}";
578578
break;
579579
case "unassigned":

0 commit comments

Comments
 (0)