Skip to content

Commit b0f7155

Browse files
Fix GitHub comment API call for telemetry upload
- Use correct GitHub.jl API: create_comment(repo, issue; body=content, auth=auth) - Previous call was treating comment body as comment kind parameter - This fixes the "is not a valid kind of comment" error - Comments should now upload successfully to GitHub issues Fixes ErrorException about comment kinds (:issue, :review, :commit). 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent d69ec05 commit b0f7155

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/LinearSolveAutotune/src/telemetry.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -371,8 +371,8 @@ function upload_to_github(content::String, plot_files::Union{Nothing, Tuple, Dic
371371
end
372372
end
373373

374-
# Post the comment
375-
GitHub.create_comment(repo_obj, issue_number, comment_body, auth = auth)
374+
# Post the comment using the correct GitHub.jl API
375+
GitHub.create_comment(repo_obj, issue_number; body = comment_body, auth = auth)
376376

377377
@info "✅ Successfully posted benchmark results to GitHub issue #$issue_number"
378378

0 commit comments

Comments
 (0)