Skip to content

Commit 60219c7

Browse files
committed
chore: add new param to 'IssuePayload'
1 parent 8964409 commit 60219c7

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
import { RepositoryWebhookPayload } from './repository-webhook-payload';
22

3+
type url = string;
4+
35
export interface IssuePayload extends RepositoryWebhookPayload {
46
action: string;
57
assignee?: { login: string };
8+
issue: { html_url: url };
69
}

test/builders/github/issue-payload-builder.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export class IssuePayloadBuilder {
1111
},
1212
sender: { login: internet.userName() },
1313
assignee: { login: internet.userName() },
14+
issue: { html_url: internet.url() },
1415
};
1516

1617
public with(payload: Partial<IssuePayload>): IssuePayloadBuilder {

0 commit comments

Comments
 (0)