@@ -57,7 +57,7 @@ type FormValues = z.infer<typeof formSchema>;
5757
5858async function validateGithubToken (
5959 orgName : string ,
60- token : string
60+ token : string ,
6161) : Promise < string | null > {
6262 const headers = {
6363 Authorization : `Bearer ${ token } ` ,
@@ -88,7 +88,7 @@ async function validateGithubToken(
8888 // 2. Check for repository creation permissions (by trying to list repos)
8989 const reposResponse = await fetch (
9090 `https://api.github.com/orgs/${ orgName } /repos?type=all` ,
91- { headers }
91+ { headers } ,
9292 ) ;
9393 if ( ! reposResponse . ok ) {
9494 let errorMessage = `Token lacks permission to list repositories in '${ orgName } '. Required: 'repo' scope.` ;
@@ -106,7 +106,7 @@ async function validateGithubToken(
106106 // 3. Check for invitation permissions (by trying to list members)
107107 const membersResponse = await fetch (
108108 `https://api.github.com/orgs/${ orgName } /members` ,
109- { headers }
109+ { headers } ,
110110 ) ;
111111 if ( ! membersResponse . ok ) {
112112 let errorMessage = `Token lacks permission to list members in '${ orgName } '. Required: 'admin:org' or 'read:org' scope.` ;
@@ -134,7 +134,7 @@ async function validateGithubToken(
134134
135135function combineImageAndTag (
136136 image : string | undefined ,
137- tag : string | undefined
137+ tag : string | undefined ,
138138) : string | undefined {
139139 if ( ! image ?. trim ( ) || ! tag ?. trim ( ) ) {
140140 return image || undefined ;
@@ -175,7 +175,7 @@ export default function CreateEventForm() {
175175
176176 // Extract owner/repo from a GitHub URL like https://github.com/owner/repo
177177 const parseGitHubRepo = (
178- url : string
178+ url : string ,
179179 ) : { owner : string ; repo : string } | null => {
180180 try {
181181 const u = new URL ( url . trim ( ) ) ;
@@ -211,13 +211,13 @@ export default function CreateEventForm() {
211211 if ( ! res . ok ) {
212212 const body = await res . json ( ) . catch ( ( ) => ( { } ) ) ;
213213 throw new Error (
214- body ?. message || `Failed to fetch tags (${ res . status } )`
214+ body ?. message || `Failed to fetch tags (${ res . status } )` ,
215215 ) ;
216216 }
217217 const data : Array < { name : string } > = await res . json ( ) ;
218218 if ( ! cancelled ) {
219219 setAvailableTags (
220- Array . from ( new Set ( ( data || [ ] ) . map ( ( t ) => t . name ) ) )
220+ Array . from ( new Set ( ( data || [ ] ) . map ( ( t ) => t . name ) ) ) ,
221221 ) ;
222222 }
223223 } catch ( e : any ) {
@@ -239,7 +239,7 @@ export default function CreateEventForm() {
239239
240240 function combineImageAndTag (
241241 image : string | undefined ,
242- tag : string | undefined
242+ tag : string | undefined ,
243243 ) : string | undefined {
244244 if ( ! image ?. trim ( ) || ! tag ?. trim ( ) ) {
245245 return image || undefined ;
@@ -252,15 +252,15 @@ export default function CreateEventForm() {
252252
253253 const gameServerDockerImageString = combineImageAndTag (
254254 values . gameServerDockerImage ,
255- values . gameServerImageTag
255+ values . gameServerImageTag ,
256256 ) ;
257257 const myCoreBotDockerImageString = combineImageAndTag (
258258 values . myCoreBotDockerImage ,
259- values . myCoreBotImageTag
259+ values . myCoreBotImageTag ,
260260 ) ;
261261 const visualizerDockerImageString = combineImageAndTag (
262262 values . visualizerDockerImage ,
263- values . visualizerImageTag
263+ values . visualizerImageTag ,
264264 ) ;
265265
266266 if ( ! gameServerDockerImageString ) {
@@ -278,7 +278,7 @@ export default function CreateEventForm() {
278278
279279 const validationError = await validateGithubToken (
280280 values . githubOrg ,
281- values . githubOrgSecret
281+ values . githubOrgSecret ,
282282 ) ;
283283 if ( validationError ) {
284284 setError ( validationError ) ;
@@ -387,7 +387,7 @@ export default function CreateEventForm() {
387387 variant = "outline"
388388 className = { cn (
389389 "w-full pl-3 text-left font-normal" ,
390- ! field . value && "text-muted-foreground"
390+ ! field . value && "text-muted-foreground" ,
391391 ) }
392392 >
393393 { field . value ? (
@@ -423,7 +423,7 @@ export default function CreateEventForm() {
423423 : new Date ( ) ;
424424 newDate . setHours (
425425 parseInt ( hours ) ,
426- parseInt ( minutes )
426+ parseInt ( minutes ) ,
427427 ) ;
428428 field . onChange ( newDate ) ;
429429 } }
@@ -449,7 +449,7 @@ export default function CreateEventForm() {
449449 variant = "outline"
450450 className = { cn (
451451 "w-full pl-3 text-left font-normal" ,
452- ! field . value && "text-muted-foreground"
452+ ! field . value && "text-muted-foreground" ,
453453 ) }
454454 >
455455 { field . value ? (
@@ -485,7 +485,7 @@ export default function CreateEventForm() {
485485 : new Date ( ) ;
486486 newDate . setHours (
487487 parseInt ( hours ) ,
488- parseInt ( minutes )
488+ parseInt ( minutes ) ,
489489 ) ;
490490 field . onChange ( newDate ) ;
491491 } }
0 commit comments