Skip to content

Commit 78adf2c

Browse files
committed
feat(payload): add branch name
1 parent ebc4466 commit 78adf2c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/PayloadHelper.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export interface ITemplateVars {
2121
diff_url: string;
2222
patch_url: string;
2323
issue_url: string;
24+
branch: string;
2425
};
2526
labels: WebhookPayloadIssuesIssueLabelsItem[];
2627
}
@@ -55,7 +56,8 @@ export class PayloadHelper implements IPayloadHelper {
5556
diff_url: prPayload.pull_request.diff_url,
5657
html_url: prPayload.pull_request.html_url,
5758
issue_url: prPayload.pull_request.issue_url,
58-
patch_url: prPayload.pull_request.patch_url
59+
patch_url: prPayload.pull_request.patch_url,
60+
branch: prPayload.pull_request.head.ref
5961
}
6062
};
6163
}

0 commit comments

Comments
 (0)