Skip to content

Commit ab22a9b

Browse files
dont show empty arguments
1 parent 32e7aab commit ab22a9b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

lib/ci-helper.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -858,9 +858,9 @@ export class CIHelper {
858858
const pullRequestURL = `https://github.com/${repositoryOwner}/${
859859
this.config.repo.name
860860
}/pull/${comment.prNumber}`;
861-
console.log(
862-
`Handling command ${command} with argument ${argument} at ${pullRequestURL}#issuecomment-${commentID}`,
863-
);
861+
const arg = argument ? ` with argument ${argument}` : "";
862+
const at = `${pullRequestURL}#issuecomment-${commentID}`;
863+
console.log(`Handling command ${command}${arg} at ${at}`);
864864

865865
const addComment = async (body: string): Promise<void> => {
866866
const redacted = CIHelper.redactGitHubToken(body);

0 commit comments

Comments
 (0)