diff --git a/actions/signed-commits/src/git/github-git/repo-tags.test.ts b/actions/signed-commits/src/git/github-git/repo-tags.test.ts index 44343d66..9d59e7c7 100644 --- a/actions/signed-commits/src/git/github-git/repo-tags.test.ts +++ b/actions/signed-commits/src/git/github-git/repo-tags.test.ts @@ -125,7 +125,11 @@ describe("repo-tags", () => { expect(createdTags.length).toBe(testTags.localOnlyTags.length); expect(createdTags.every((t) => t.name.includes("/"))).toBe(true); for (const cTag of createdTags) { - expect(testTags.localOnlyTags.some((lTag) => lTag.name === cTag.originalName)).toBe(true); + expect( + testTags.localOnlyTags.some( + (lTag) => lTag.name === cTag.originalName, + ), + ).toBe(true); } const afterTagTypes = await listTagTypes( @@ -150,17 +154,27 @@ describe("repo-tags", () => { expect(createdTags.length).toBe(testTags.localOnlyTags.length); expect(createdTags.every((t) => t.name.includes("/"))).toBe(true); for (const cTag of createdTags) { - expect(testTags.localOnlyTags.some((lTag) => lTag.name === cTag.originalName)).toBe(true); + expect( + testTags.localOnlyTags.some( + (lTag) => lTag.name === cTag.originalName, + ), + ).toBe(true); } // 2nd pass - create new local only tags, and check diff with tag rewrites // should have 6 remote tags, and 3 local only tags - const newLocalOnlyTestTags = await createAnnotatedTestTags(testTags.localRepoPath, "new-local-only", 3); + const newLocalOnlyTestTags = await createAnnotatedTestTags( + testTags.localRepoPath, + "new-local-only", + 3, + ); const createdTags2 = await pushTags("/", testTags.localRepoPath); expect(createdTags2.length).toBe(newLocalOnlyTestTags.length); for (const cTag of createdTags2) { - expect(newLocalOnlyTestTags.some((lTag) => lTag.name === cTag.originalName)).toBe(true); + expect( + newLocalOnlyTestTags.some((lTag) => lTag.name === cTag.originalName), + ).toBe(true); } }); }); diff --git a/actions/signed-commits/src/git/github-git/repo-tags.ts b/actions/signed-commits/src/git/github-git/repo-tags.ts index fd7c1851..5a75f8f7 100644 --- a/actions/signed-commits/src/git/github-git/repo-tags.ts +++ b/actions/signed-commits/src/git/github-git/repo-tags.ts @@ -69,7 +69,7 @@ export async function createLightweightTags( return { name: newTagName, ref: tag.ref, - originalName: (newTagName != tag.name) ? tag.name : undefined, + originalName: newTagName != tag.name ? tag.name : undefined, }; });