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
constpopupMessage=`Successfully scheduled runs. [Click here to see the progress](https://github.com/${owner}/${repo}/actions/runs/${response.workflow_run_id}).`
343
-
+(response.errors ? '\n\nSome repositories could not be scheduled. See extension log for details.' : '');
347
+
+(response.errors ? `${eol2}Some repositories could not be scheduled. See extension log for details.` : '');
344
348
345
349
letlogMessage=`Successfully scheduled runs. See https://github.com/${owner}/${repo}/actions/runs/${response.workflow_run_id}.`;
logMessage+=`\n\nRepositories without databases:\n${response.errors.repositories_without_database.join(', ')}`;
359
+
logMessage+=`${eol2}Repositories without databases:${eol}${response.errors.repositories_without_database.join(', ')}`;
360
+
logMessage+=`${eol}These repositories have been added to the database storage service and we will attempt to create a database for them next time the store is updated.`;
['Successfully scheduled runs. [Click here to see the progress](https://github.com/org/name/actions/runs/123).',
70
71
'',
71
-
'Some repositories could not be scheduled. See extension log for details.'].join('\n')
72
+
'Some repositories could not be scheduled. See extension log for details.'].join(os.EOL)
72
73
);
73
74
expect(result.logMessage).to.equal(
74
75
['Successfully scheduled runs. See https://github.com/org/name/actions/runs/123.',
75
76
'',
76
-
'Repositories queried:\na/b, c/d',
77
+
'Repositories queried:',
78
+
'a/b, c/d',
77
79
'',
78
80
'Some repositories could not be scheduled.',
79
81
'',
80
-
'Repositories without databases:\ne/f, g/h'].join('\n')
82
+
'Repositories without databases:',
83
+
'e/f, g/h',
84
+
'These repositories have been added to the database storage service and we will attempt to create a database for them next time the store is updated.'].join(os.EOL)
['Successfully scheduled runs. [Click here to see the progress](https://github.com/org/name/actions/runs/123).',
96
100
'',
97
-
'Some repositories could not be scheduled. See extension log for details.'].join('\n')
101
+
'Some repositories could not be scheduled. See extension log for details.'].join(os.EOL)
98
102
);
99
103
expect(result.logMessage).to.equal(
100
104
['Successfully scheduled runs. See https://github.com/org/name/actions/runs/123.',
101
105
'',
102
-
'Repositories queried:\na/b, c/d',
106
+
'Repositories queried:',
107
+
'a/b, c/d',
103
108
'',
104
109
'Some repositories could not be scheduled.',
105
110
'',
106
111
'Invalid repositories:',
107
112
'e/f, g/h',
108
113
'',
109
114
'Repositories without databases:',
110
-
'i/j, k/l'].join('\n')
115
+
'i/j, k/l',
116
+
'These repositories have been added to the database storage service and we will attempt to create a database for them next time the store is updated.'].join(os.EOL)
0 commit comments