Correct base ref to include prefix

This commit is contained in:
Robin Neatherway 2020-11-30 18:30:02 +00:00
parent dff118f7ad
commit 9de6863c74

View file

@ -186,7 +186,7 @@ export function buildPayload(
mode: util.Mode
) {
if (mode === "actions") {
const payloadObj = {
const payloadObj: any = {
commit_oid: commitOid,
ref,
analysis_key: analysisKey,
@ -213,7 +213,7 @@ export function buildPayload(
const githubEvent = JSON.parse(
fs.readFileSync(process.env.GITHUB_EVENT_PATH, "utf8")
);
payloadObj.base_ref = githubEvent.pull_request.base.ref;
payloadObj.base_ref = `refs/heads/$githubEvent.pull_request.base.ref`;
payloadObj.base_sha = githubEvent.pull_request.base.sha;
}
}