Skip to content

Commit 33a9d78

Browse files
committed
fix(github-pr-branch): switched from the base ref to the head ref
in order to target the branch from which the Pull Request originated rather than the merge with the mainline branch
1 parent b39d344 commit 33a9d78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/github.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const getPrEvent = ({ env }) => {
1212
if (event && event.pull_request) {
1313
return {
1414
branch: event.pull_request.base
15-
? parseBranch(event.pull_request.base.ref)
15+
? parseBranch(event.pull_request.head.ref)
1616
: undefined,
1717
pr: event.pull_request.number,
1818
};

0 commit comments

Comments
 (0)