Use the fully qualified ref name
This commit is contained in:
parent
884ee1d129
commit
369cad8272
6 changed files with 6 additions and 6 deletions
2
lib/upload-lib.test.js
generated
2
lib/upload-lib.test.js
generated
|
|
@ -47,7 +47,7 @@ ava_1.default("validate correct payload used per version", async (t) => {
|
|||
process.env["GITHUB_EVENT_PATH"] = `${__dirname}/../src/testdata/pull_request.json`;
|
||||
for (const version of newVersions) {
|
||||
const payload = uploadLib.buildPayload("commit", "refs/pull/123/merge", "key", undefined, "", undefined, "/opt/src", undefined, ["CodeQL", "eslint"], version, "actions");
|
||||
t.deepEqual(payload.base_ref, "master");
|
||||
t.deepEqual(payload.base_ref, "refs/heads/master");
|
||||
t.deepEqual(payload.base_sha, "f95f852bd8fca8fcc58a9a2d6c842781e32a215e");
|
||||
}
|
||||
for (const version of oldVersions) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue