Skip to content

Commit

Permalink
Correct base ref to include prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
Robin Neatherway committed Nov 30, 2020
1 parent dff118f commit 9de6863
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/upload-lib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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;
}
}
Expand Down

0 comments on commit 9de6863

Please sign in to comment.