@@ -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 } ` )
0 commit comments