refresh pr

Signed-off-by: Rui Chen <rui@chenrui.dev>
This commit is contained in:
Rui Chen 2025-06-10 20:45:09 -04:00
parent a6b02d29ce
commit 3ecccfdb3a
No known key found for this signature in database
GPG key ID: 6577287BDCA70840
4 changed files with 2210 additions and 3655 deletions

View file

@ -17,9 +17,9 @@ describe("util", () => {
it("strips template", () => {
assert.equal(
uploadUrl(
"https://uploads.github.com/repos/octocat/Hello-World/releases/1/assets{?name,label}"
"https://uploads.github.com/repos/octocat/Hello-World/releases/1/assets{?name,label}",
),
"https://uploads.github.com/repos/octocat/Hello-World/releases/1/assets"
"https://uploads.github.com/repos/octocat/Hello-World/releases/1/assets",
);
});
});
@ -33,7 +33,7 @@ describe("util", () => {
it("parses newline and comma-delimited (and then some)", () => {
assert.deepStrictEqual(
parseInputFiles("foo,bar\nbaz,boom,\n\ndoom,loom "),
["foo", "bar", "baz", "boom", "doom", "loom"]
["foo", "bar", "baz", "boom", "doom", "loom"],
);
});
});
@ -58,7 +58,7 @@ describe("util", () => {
input_generate_release_notes: false,
input_make_latest: undefined,
input_previous_tag: undefined,
})
}),
);
});
it("uses input body path", () => {
@ -81,7 +81,7 @@ describe("util", () => {
input_generate_release_notes: false,
input_make_latest: undefined,
input_previous_tag: undefined,
})
}),
);
});
it("defaults to body path when both body and body path are provided", () => {
@ -104,7 +104,7 @@ describe("util", () => {
input_generate_release_notes: false,
input_make_latest: undefined,
input_previous_tag: undefined,
})
}),
);
});
});
@ -140,7 +140,7 @@ describe("util", () => {
input_generate_release_notes: false,
input_make_latest: undefined,
input_previous_tag: undefined,
}
},
);
});
@ -168,7 +168,7 @@ describe("util", () => {
input_generate_release_notes: false,
input_make_latest: undefined,
input_previous_tag: undefined,
}
},
);
});
it("supports discussion category names", () => {
@ -195,7 +195,7 @@ describe("util", () => {
input_generate_release_notes: false,
input_make_latest: undefined,
input_previous_tag: undefined,
}
},
);
});
@ -223,7 +223,7 @@ describe("util", () => {
input_generate_release_notes: true,
input_make_latest: undefined,
input_previous_tag: undefined,
}
},
);
});
@ -255,7 +255,7 @@ describe("util", () => {
input_generate_release_notes: false,
input_make_latest: undefined,
input_previous_tag: undefined,
}
},
);
});
it("uses input token as the source of GITHUB_TOKEN by default", () => {
@ -284,7 +284,7 @@ describe("util", () => {
input_generate_release_notes: false,
input_make_latest: undefined,
input_previous_tag: undefined,
}
},
);
});
it("parses basic config with draft and prerelease", () => {
@ -311,7 +311,7 @@ describe("util", () => {
input_discussion_category_name: undefined,
input_generate_release_notes: false,
input_make_latest: undefined,
}
},
);
});
it("parses basic config where make_latest is passed", () => {
@ -338,7 +338,7 @@ describe("util", () => {
input_generate_release_notes: false,
input_make_latest: "false",
input_previous_tag: undefined,
}
},
);
});
it("parses basic config with append_body", () => {
@ -365,7 +365,7 @@ describe("util", () => {
input_generate_release_notes: false,
input_make_latest: undefined,
input_previous_tag: undefined,
}
},
);
});
});
@ -382,7 +382,7 @@ describe("util", () => {
it("resolves files given a set of paths", async () => {
assert.deepStrictEqual(
paths(["tests/data/**/*", "tests/data/does/not/exist/*"]),
["tests/data/foo/bar.txt"]
["tests/data/foo/bar.txt"],
);
});
});
@ -391,7 +391,7 @@ describe("util", () => {
it("returns the patterns that don't match any files", async () => {
assert.deepStrictEqual(
unmatchedPatterns(["tests/data/**/*", "tests/data/does/not/exist/*"]),
["tests/data/does/not/exist/*"]
["tests/data/does/not/exist/*"],
);
});
});
@ -403,7 +403,7 @@ describe("util", () => {
it("handles names with multiple spaces", () => {
expect(alignAssetName("John William Doe.bla")).toBe(
"John.William.Doe.bla"
"John.William.Doe.bla",
);
});