Skip to content

Commit

Permalink
Fix output.
Browse files Browse the repository at this point in the history
  • Loading branch information
reitermarkus committed Mar 12, 2023
1 parent ca3dd26 commit c4674ad
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/automerge-action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ export class AutomergeAction {
const titleMessage = commitTitle ? ` with title '${commitTitle}'` : undefined

if (this.input.dryRun) {
core.info(`Would try enabling auto-merge for pull request ${number}${titleMessage}.`)
core.info(`Would try enabling auto-merge for pull request ${number}${titleMessage || ''}.`)
return
}

Expand All @@ -224,7 +224,7 @@ export class AutomergeAction {
}
}

core.info(`Enabling auto-merge for pull request ${number}${titleMessage}:`)
core.info(`Enabling auto-merge for pull request ${number}${titleMessage || ''}:`)
const result = await this.enableAutoMerge(pullRequest, commitTitle, commitMessage, mergeMethod)

if (result.enablePullRequestAutoMerge?.pullRequest?.autoMergeRequest?.enabledAt) {
Expand Down

0 comments on commit c4674ad

Please sign in to comment.