diff --git a/integration/commits.ts b/integration/commits.ts index 9ef70f8d..bbccaa71 100644 --- a/integration/commits.ts +++ b/integration/commits.ts @@ -37,7 +37,7 @@ export async function compareCommits( if (!base || !head) { return []; } - const commits = await _compareCommits(repo, from, to); + const commits = await _compareCommits(repo, base, head); await kv.set( ["commits", repo.owner, repo.name, from, to], commits, diff --git a/integration/commits_test.ts b/integration/commits_test.ts index 31656cab..a279dd8d 100644 --- a/integration/commits_test.ts +++ b/integration/commits_test.ts @@ -40,3 +40,25 @@ Deno.test("compareCommits - non existing tags", async () => { [], ); }); + +Deno.test("compareCommits - inconsistently prefixed tags", async () => { + assertEquals( + await compareCommits( + { + host: "github", + owner: "jsr-core", + name: "unknownutil", + }, + "3.18.0", + "3.18.1", + ), + [ + ":memo: Fix NPM README", + "Merge pull request #78 from jsr-core/fix-npm\n\n:memo: Fix NPM README", + ":coffee: Refine deno tasks", + ":memo: Add deprecation warning", + "Merge pull request #83 from jsr-core/deprecate\n" + + "\n" + ":memo: Add deprecation warning message", + ], + ); +});