Skip to content

Commit 9a30337

Browse files
committed
More log to represent inputs.
1 parent 162b25e commit 9a30337

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/CommentCore/CommentUseCase.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,13 +77,13 @@ struct CommentUseCase {
7777

7878
// Try to find an existing comment with the hidden anchor content.
7979
if let comment = comments.first(where: { $0.body?.contains(hidingContent) == true }) {
80-
// Update the existing comment with the new body content.
80+
print("Update the existing comment with the new body content.")
8181
_ = try await client.issues_sol_update_hyphen_comment(
8282
path: .init(owner: owner, repo: repo, comment_id: Components.Parameters.comment_hyphen_id(comment.id)),
8383
body: .json(.init(body: newBody))
8484
)
8585
} else {
86-
// Create a new comment if no existing comment with the anchor is found.
86+
print("Create a new comment if no existing comment with the anchor is found.")
8787
_ = try await client.issues_sol_create_hyphen_comment(
8888
path: .init(owner: owner, repo: repo, issue_number: number),
8989
body: .json(.init(body: newBody))

0 commit comments

Comments
 (0)