@@ -208,7 +208,13 @@ async function preFillFields(repoData, languages) {
208208
209209 // Updating URL
210210 if ( repoData . html_url ) {
211- form . getComponent ( 'repositoryURL' ) . setValue ( repoData . html_url )
211+ if ( repoData . private ) {
212+ // Private repositories must have "private" as their repositoryURL value
213+ form . getComponent ( 'repositoryURL' ) . setValue ( "private" )
214+ }
215+ else {
216+ form . getComponent ( 'repositoryURL' ) . setValue ( repoData . html_url )
217+ }
212218 }
213219
214220 // Updating forks
@@ -306,11 +312,11 @@ async function preFillFields(repoData, languages) {
306312 }
307313
308314 // fields to potentially automate
309- // clones, but this is only tracked for every 14 days
310- // status, by checking if its public, we can assume its production and check if its archival
311- // laborHours, by running a script? this might be harder since we need SCC
312- // maturityModel, we could check to see if certain files / sections live within a repo and make a guess like that
313- // usageType, by assuming that if its public = openSource and if private = governmnetWideReuse
315+ // clones, but this is only tracked for every 14 days
316+ // status, by checking if its public, we can assume its production and check if its archival
317+ // laborHours, by running a script? this might be harder since we need SCC
318+ // maturityModel, we could check to see if certain files / sections live within a repo and make a guess like that
319+ // usageType, by assuming that if its public = openSource and if private = governmnetWideReuse
314320
315321 notificationSystem . success ( "Repository data loaded successfully!" )
316322
0 commit comments