updated githubPullRequest
Signed-off-by: Tavi Nolan <Tavi.Nolan@fmr.com>
This commit is contained in:
@@ -229,7 +229,7 @@ describe('createPublishGithubPullRequestAction', () => {
|
||||
expect(ctx.output).toHaveBeenCalledWith('pullRequestNumber', 123);
|
||||
});
|
||||
|
||||
it('handles dry run correctly', async () => {
|
||||
it('sets correct outputs during dry run', async () => {
|
||||
ctx.isDryRun = true;
|
||||
await instance.handler(ctx);
|
||||
|
||||
|
||||
@@ -322,14 +322,11 @@ export const createPublishGithubPullRequestAction = (
|
||||
);
|
||||
|
||||
if (ctx.isDryRun) {
|
||||
ctx.logger.info(
|
||||
`Dry run arguments: ${{
|
||||
...ctx.input,
|
||||
}}`,
|
||||
);
|
||||
ctx.logger.info(`Performing dry run of creating pull request`);
|
||||
ctx.output('targetBranchName', branchName);
|
||||
ctx.output('remoteUrl', repoUrl);
|
||||
ctx.output('pullRequestNumber', 43);
|
||||
ctx.logger.info(`Dry run complete`);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user