Correct base ref to include prefix
This commit is contained in:
parent
dff118f7ad
commit
9de6863c74
1 changed files with 2 additions and 2 deletions
|
|
@ -186,7 +186,7 @@ export function buildPayload(
|
||||||
mode: util.Mode
|
mode: util.Mode
|
||||||
) {
|
) {
|
||||||
if (mode === "actions") {
|
if (mode === "actions") {
|
||||||
const payloadObj = {
|
const payloadObj: any = {
|
||||||
commit_oid: commitOid,
|
commit_oid: commitOid,
|
||||||
ref,
|
ref,
|
||||||
analysis_key: analysisKey,
|
analysis_key: analysisKey,
|
||||||
|
|
@ -213,7 +213,7 @@ export function buildPayload(
|
||||||
const githubEvent = JSON.parse(
|
const githubEvent = JSON.parse(
|
||||||
fs.readFileSync(process.env.GITHUB_EVENT_PATH, "utf8")
|
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;
|
payloadObj.base_sha = githubEvent.pull_request.base.sha;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue