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}).`
constpopupMessage=`Successfully scheduled runs on ${numRepositoriesQueried} repositories. [Click here to see the progress](https://github.com/${owner}/${repo}/actions/runs/${response.workflow_run_id}).`
347
350
+(response.errors ? `${eol2}Some repositories could not be scheduled. See extension log for details.` : '');
348
351
349
-
letlogMessage=`Successfully scheduled runs. See https://github.com/${owner}/${repo}/actions/runs/${response.workflow_run_id}.`;
letlogMessage=`Successfully scheduled runs on ${numRepositoriesQueried} repositories. See https://github.com/${owner}/${repo}/actions/runs/${response.workflow_run_id}.`;
expect(result.popupMessage).to.equal('Successfully scheduled runs. [Click here to see the progress](https://github.com/org/name/actions/runs/123).');
13
+
expect(result.popupMessage).to.equal('Successfully scheduled runs on 2 repositories. [Click here to see the progress](https://github.com/org/name/actions/runs/123).');
14
14
expect(result.logMessage).to.equal(
15
-
['Successfully scheduled runs. See https://github.com/org/name/actions/runs/123.',
15
+
['Successfully scheduled runs on 2 repositories. See https://github.com/org/name/actions/runs/123.',
16
16
'',
17
17
'Repositories queried:',
18
18
'a/b, c/d'].join(os.EOL),
19
19
);
20
20
});
21
21
22
-
it('should parse a response with no repositories queried',()=>{
23
-
constresult=parseResponse('org','name',{
24
-
workflow_run_id: 123,
25
-
});
26
-
27
-
expect(result.popupMessage).to.equal('Successfully scheduled runs. [Click here to see the progress](https://github.com/org/name/actions/runs/123).');
28
-
expect(result.logMessage).to.equal(
29
-
'Successfully scheduled runs. See https://github.com/org/name/actions/runs/123.'
30
-
);
31
-
});
32
-
33
22
it('should parse a response with invalid repos',()=>{
0 commit comments