initial commit, add dry run to githubPullRequest

Signed-off-by: Tavi Nolan <Tavi.Nolan@fmr.com>
This commit is contained in:
Tavi Nolan
2024-04-03 13:28:07 +01:00
parent 030fd36b03
commit 9f3fdcc382
@@ -321,6 +321,22 @@ export const createPublishGithubPullRequestAction = (
]),
);
if (ctx.isDryRun) {
ctx.logger.info(
`Dry run arguments: ${{
repoUrl,
branchName,
title,
description,
...ctx.input,
}}`,
);
ctx.output('targetBranchName', branchName);
ctx.output('remoteUrl', repoUrl);
ctx.output('pullRequestNumber', 42);
return;
}
try {
const createOptions: createPullRequest.Options = {
owner,