From 8b079a84d5a9a800e511e98438ebd5321e604a3a Mon Sep 17 00:00:00 2001 From: ibakshay Date: Thu, 9 Feb 2023 10:50:59 +0100 Subject: [PATCH] test --- dist/index.js | 8 +++++++- src/persistence/persistence.ts | 8 +++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index b2244f8e..4ce690db 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1925,7 +1925,13 @@ function updateFile(sha, claFileContent, reactedCommitters) { content: contentBinary, branch: input.getBranch() }); - console.log(input.getSignedCommitMessage()); + const test = input + .getSignedCommitMessage() + .replace('$contributorName', github_1.context.actor) + .replace('$pullRequestNo', pullRequestNo.toString()) + .replace('$owner', github_1.context.issue.owner) + .replace('$repo', github_1.context.issue.repo); + console.log(test); }); } exports.updateFile = updateFile; diff --git a/src/persistence/persistence.ts b/src/persistence/persistence.ts index 5cea6fb9..e00ac1fc 100644 --- a/src/persistence/persistence.ts +++ b/src/persistence/persistence.ts @@ -65,7 +65,13 @@ export async function updateFile( content: contentBinary, branch: input.getBranch() }) - console.log(input.getSignedCommitMessage()) + const test = input + .getSignedCommitMessage() + .replace('$contributorName', context.actor) + .replace('$pullRequestNo', pullRequestNo.toString()) + .replace('$owner', context.issue.owner) + .replace('$repo', context.issue.repo) + console.log(test) } function isRemoteRepoOrOrgConfigured(): boolean {