You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Move remote queries specific code out of run-remote-query
This moves some of the code that is specific to remote queries out of
the `run-remote-query.ts` file and instead places it in separate files
that only deal with remote queries, rather than also dealing with
variant analyses.
constpopupMessage=`Successfully scheduled runs on ${pluralize(repositoryCount,'repository','repositories')}. [Click here to see the progress](https://github.com/${controllerRepo.fullName}/actions/runs/${response.workflow_run_id}).`
50
+
+(response.errors ? `${eol2}Some repositories could not be scheduled. See extension log for details.` : '');
51
+
52
+
letlogMessage=`Successfully scheduled runs on ${pluralize(repositoryCount,'repository','repositories')}. See https://github.com/${controllerRepo.fullName}/actions/runs/${response.workflow_run_id}.`;
logMessage+=`${eol2}Some repositories could not be scheduled.`;
57
+
if(invalid_repositories?.length){
58
+
logMessage+=`${eol2}${pluralize(invalid_repositories.length,'repository','repositories')} invalid and could not be found:${eol}${invalid_repositories.join(', ')}`;
59
+
}
60
+
if(repositories_without_database?.length){
61
+
logMessage+=`${eol2}${pluralize(repositories_without_database.length,'repository','repositories')} did not have a CodeQL database available:${eol}${repositories_without_database.join(', ')}`;
62
+
logMessage+=`${eol}For each public repository that has not yet been added to the database service, we will try to create a database next time the store is updated.`;
63
+
}
64
+
if(private_repositories?.length){
65
+
logMessage+=`${eol2}${pluralize(private_repositories.length,'repository','repositories')} not public:${eol}${private_repositories.join(', ')}`;
66
+
logMessage+=`${eol}When using a public controller repository, only public repositories can be queried.`;
67
+
}
68
+
if(cutoff_repositories_count){
69
+
logMessage+=`${eol2}${pluralize(cutoff_repositories_count,'repository','repositories')} over the limit for a single request`;
constpopupMessage=`Successfully scheduled runs on ${pluralize(repositoryCount,'repository','repositories')}. [Click here to see the progress](https://github.com/${controllerRepo.fullName}/actions/runs/${response.workflow_run_id}).`
299
-
+(response.errors ? `${eol2}Some repositories could not be scheduled. See extension log for details.` : '');
300
-
301
-
letlogMessage=`Successfully scheduled runs on ${pluralize(repositoryCount,'repository','repositories')}. See https://github.com/${controllerRepo.fullName}/actions/runs/${response.workflow_run_id}.`;
logMessage+=`${eol2}Some repositories could not be scheduled.`;
306
-
if(invalid_repositories?.length){
307
-
logMessage+=`${eol2}${pluralize(invalid_repositories.length,'repository','repositories')} invalid and could not be found:${eol}${invalid_repositories.join(', ')}`;
308
-
}
309
-
if(repositories_without_database?.length){
310
-
logMessage+=`${eol2}${pluralize(repositories_without_database.length,'repository','repositories')} did not have a CodeQL database available:${eol}${repositories_without_database.join(', ')}`;
311
-
logMessage+=`${eol}For each public repository that has not yet been added to the database service, we will try to create a database next time the store is updated.`;
312
-
}
313
-
if(private_repositories?.length){
314
-
logMessage+=`${eol2}${pluralize(private_repositories.length,'repository','repositories')} not public:${eol}${private_repositories.join(', ')}`;
315
-
logMessage+=`${eol}When using a public controller repository, only public repositories can be queried.`;
316
-
}
317
-
if(cutoff_repositories_count){
318
-
logMessage+=`${eol2}${pluralize(cutoff_repositories_count,'repository','repositories')} over the limit for a single request`;
0 commit comments