@@ -351,9 +351,13 @@ function SubmitForm({ t, initialPublicKey }: { t: typeof locales.en; initialPubl
351351 } ;
352352
353353 const onSubmit = ( data : z . infer < typeof submitSchema > ) => {
354- const title = `[keyring] ${ data . username } ` ;
355- const body = `## Submit Developer Public Key\n\n**Public Key**:\n\n\`\`\`\n${ data . csr } \n\`\`\`\n\n---\nPlease review and add \`approved\` label to issue certificate.` ;
356- window . open ( `https://github.com/KernelSU-Modules-Repo/developers/issues/new?title=${ encodeURIComponent ( title ) } &body=${ encodeURIComponent ( body ) } ` , "_blank" ) ;
354+ // Use GitHub Issue Template with auto-filled data
355+ const params = new URLSearchParams ( {
356+ template : 'keyring.yml' ,
357+ username : data . username ,
358+ public_key : data . csr
359+ } ) ;
360+ window . open ( `https://github.com/KernelSU-Modules-Repo/developers/issues/new?${ params . toString ( ) } ` , "_blank" ) ;
357361 } ;
358362
359363 return (
@@ -561,9 +565,15 @@ function RevokeForm({ t }: { t: typeof locales.en }) {
561565 } ;
562566
563567 const onSubmit = ( data : z . infer < typeof revokeSchema > ) => {
564- const title = `[revoke] ${ data . fingerprint . substring ( 0 , 20 ) } ...` ;
565- const body = `## Revoke Developer Certificate\n\n**Requested by**: @${ data . username } \n**Certificate Fingerprint**: \`${ data . fingerprint } \`\n**Reason**: ${ data . reason } \n\n**Details**:\n${ data . details || "N/A" } ` ;
566- window . open ( `https://github.com/KernelSU-Modules-Repo/developers/issues/new?title=${ encodeURIComponent ( title ) } &body=${ encodeURIComponent ( body ) } ` , "_blank" ) ;
568+ // Use GitHub Issue Template with auto-filled data
569+ const params = new URLSearchParams ( {
570+ template : 'revoke.yml' ,
571+ username : data . username ,
572+ fingerprint : data . fingerprint ,
573+ reason : data . reason ,
574+ details : data . details || ''
575+ } ) ;
576+ window . open ( `https://github.com/KernelSU-Modules-Repo/developers/issues/new?${ params . toString ( ) } ` , "_blank" ) ;
567577 } ;
568578
569579 return (
0 commit comments