Skip to content

Commit d552edd

Browse files
committed
test
1 parent a9e6bc9 commit d552edd

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

dist/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1904,6 +1904,7 @@ function updateFile(sha, claFileContent, reactedCommitters) {
19041904
return __awaiter(this, void 0, void 0, function* () {
19051905
const octokitInstance = isRemoteRepoOrOrgConfigured() ? (0, octokit_1.getPATOctokit)() : (0, octokit_1.getDefaultOctokitClient)();
19061906
const pullRequestNo = github_1.context.issue.number;
1907+
console.log(input.getSignedCommitMessage());
19071908
console.log(JSON.stringify(github_1.context.issue, null, 3));
19081909
claFileContent === null || claFileContent === void 0 ? void 0 : claFileContent.signedContributors.push(...reactedCommitters.newSigned);
19091910
let contentString = JSON.stringify(claFileContent, null, 2);
@@ -1917,13 +1918,14 @@ function updateFile(sha, claFileContent, reactedCommitters) {
19171918
? input
19181919
.getSignedCommitMessage()
19191920
.replace('$contributorName', github_1.context.actor)
1920-
.replace('$pullRequestNo', github_1.context.issue.number.toString())
1921+
.replace('$pullRequestNo', pullRequestNo.toString())
19211922
.replace('$owner', github_1.context.issue.owner)
19221923
.replace('$repo', github_1.context.issue.repo)
19231924
: `@${github_1.context.actor} has signed the CLA from Pull Request #${pullRequestNo}`,
19241925
content: contentBinary,
19251926
branch: input.getBranch()
19261927
});
1928+
console.log(input.getSignedCommitMessage());
19271929
});
19281930
}
19291931
exports.updateFile = updateFile;

src/persistence/persistence.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ export async function updateFile(
4444
isRemoteRepoOrOrgConfigured() ? getPATOctokit() : getDefaultOctokitClient()
4545

4646
const pullRequestNo = context.issue.number
47+
console.log(input.getSignedCommitMessage())
4748
console.log(JSON.stringify(context.issue, null, 3))
4849
claFileContent?.signedContributors.push(...reactedCommitters.newSigned)
4950
let contentString = JSON.stringify(claFileContent, null, 2)
@@ -57,13 +58,14 @@ export async function updateFile(
5758
? input
5859
.getSignedCommitMessage()
5960
.replace('$contributorName', context.actor)
60-
.replace('$pullRequestNo', context.issue.number.toString())
61+
.replace('$pullRequestNo', pullRequestNo.toString())
6162
.replace('$owner', context.issue.owner)
6263
.replace('$repo', context.issue.repo)
6364
: `@${context.actor} has signed the CLA from Pull Request #${pullRequestNo}`,
6465
content: contentBinary,
6566
branch: input.getBranch()
6667
})
68+
console.log(input.getSignedCommitMessage())
6769
}
6870

6971
function isRemoteRepoOrOrgConfigured(): boolean {

0 commit comments

Comments
 (0)