From 33a9d78881cab56045fe53b32a8195406ea6f99f Mon Sep 17 00:00:00 2001 From: Matt Travi Date: Fri, 10 Feb 2023 17:11:05 -0600 Subject: [PATCH] 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 --- services/github.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/github.js b/services/github.js index 0af081c..fefcfb3 100644 --- a/services/github.js +++ b/services/github.js @@ -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, };