Skip to content

Commit f9be937

Browse files
committed
feat: send issue url to Twitch Chat when issue is assigned
1 parent a818610 commit f9be937

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/reactions/github/issue-assigned.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export class IssueAssigned extends Reaction {
77
}
88

99
getTwitchChatMessage({ payload }: ReactionHandleOptions<IssuePayload>): string {
10-
return `${payload.assignee?.login} has a new assigned issue in ${payload.repository.html_url}`;
10+
return `${payload.assignee?.login} has a new assigned issue in ${payload.issue.html_url}`;
1111
}
1212

1313
canHandle({ payload, event, config }: ReactionCanHandleOptions<IssuePayload>): boolean {

test/reactions/github/issue-assigned.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ describe('IssueAssigned', () => {
3737
await subject.handle({ payload });
3838

3939
expect(twitchChat.send).toHaveBeenCalledWith(
40-
`${payload.assignee?.login} has a new assigned issue in ${payload.repository.html_url}`,
40+
`${payload.assignee?.login} has a new assigned issue in ${payload.issue.html_url}`,
4141
);
4242
});
4343
});

0 commit comments

Comments
 (0)