Skip to content

Commit 612e35c

Browse files
committed
style(releases): apply oxfmt formatting to immutable-release fix
1 parent 62e8844 commit 612e35c

2 files changed

Lines changed: 9 additions & 16 deletions

File tree

src/releases/github.ts

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -581,11 +581,9 @@ export async function getLatestRelease(
581581
// and is the canonical replacement. Per-tag fetches via
582582
// `/repos/:owner/:repo/releases/tags/:tag` still work for
583583
// immutable releases, so `getReleaseAssetUrl` stays on REST.
584-
const response = await httpRequest(
585-
'https://api.github.com/graphql',
586-
{
587-
body: JSON.stringify({
588-
query: `query($owner: String!, $repo: String!) {
584+
const response = await httpRequest('https://api.github.com/graphql', {
585+
body: JSON.stringify({
586+
query: `query($owner: String!, $repo: String!) {
589587
repository(owner: $owner, name: $repo) {
590588
releases(first: 100, orderBy: {field: CREATED_AT, direction: DESC}) {
591589
nodes {
@@ -596,12 +594,11 @@ export async function getLatestRelease(
596594
}
597595
}
598596
}`,
599-
variables: { owner, repo },
600-
}),
601-
headers: { ...getAuthHeaders(), 'Content-Type': 'application/json' },
602-
method: 'POST',
603-
},
604-
)
597+
variables: { owner, repo },
598+
}),
599+
headers: { ...getAuthHeaders(), 'Content-Type': 'application/json' },
600+
method: 'POST',
601+
})
605602

606603
if (!response.ok) {
607604
throw new Error(`Failed to fetch releases: ${response.status}`)

test/unit/releases-github.test.mts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -556,11 +556,7 @@ describe('releases/github', () => {
556556
]
557557

558558
vi.mocked(httpRequest).mockResolvedValue(
559-
createMockHttpResponse(
560-
wrapReleasesAsGraphQL(mixedReleases),
561-
true,
562-
200,
563-
),
559+
createMockHttpResponse(wrapReleasesAsGraphQL(mixedReleases), true, 200),
564560
)
565561

566562
const tag = await getLatestRelease('models-', SOCKET_BTM_REPO, {

0 commit comments

Comments
 (0)