Skip to content

Commit

Permalink
fix(github-pr-branch): switched from the base ref to the head ref
Browse files Browse the repository at this point in the history
in order to target the branch from which the Pull Request originated rather than the merge with the mainline branch
  • Loading branch information
travi committed Feb 10, 2023
1 parent b39d344 commit 33a9d78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/github.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const getPrEvent = ({ env }) => {
if (event && event.pull_request) {
return {
branch: event.pull_request.base
? parseBranch(event.pull_request.base.ref)
? parseBranch(event.pull_request.head.ref)
: undefined,
pr: event.pull_request.number,
};
Expand Down

0 comments on commit 33a9d78

Please sign in to comment.