Skip to content

Commit 2be3cc6

Browse files
committed
Feat(events): add PullRequestReviewComment
1 parent e0c6a15 commit 2be3cc6

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

components/GitHubEventAction.tsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,16 @@ function GitHubEventAction({type, payload}: GitHubEventActionProps): JSX.Element
6363
}
6464
return <span>{action} <ELink link={prURL}>pull request #{prNum}</ELink> in</span>;
6565
}
66+
case 'PullRequestReviewCommentEvent': {
67+
const action = payload.action;
68+
const prNum = payload.comment.number;
69+
const prLink = payload.comment.pull_request_url;
70+
return (
71+
<span>
72+
{action} <ELink link={prLink}> pull request #{prNum}</ELink> in
73+
</span>
74+
);
75+
}
6676
case 'PullRequestReviewEvent': {
6777
const action = payload?.action;
6878
const prNum = payload?.pull_request?.number;

0 commit comments

Comments
 (0)