From f3bdbfba2d1d9585677df79d4b577b6f05534c7a Mon Sep 17 00:00:00 2001 From: Marc Izquierdo Date: Tue, 20 Oct 2026 18:29:53 +0200 Subject: [PATCH 1/2] Trim whitespace from PR titles A trailing space in a PR title rendered as **foo ** in Teamwork comments, which Markdown doesn't treat as bold, so the asterisks showed up literally. Requires jq 1.7.1+ for trim (Alpine 3.24 ships 1.8.2). Co-Authored-By: Claude Opus 5.5 --- src/github.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/github.sh b/src/github.sh index 726b906b..dbe93858 100644 --- a/src/github.sh +++ b/src/github.sh @@ -33,7 +33,7 @@ github::get_pr_url() { } github::get_pr_title() { - jq --raw-output .pull_request.title "$GITHUB_EVENT_PATH" + jq --raw-output '.pull_request.title | trim' "$GITHUB_EVENT_PATH" } github::get_pr_patch_stats() { From 2cff5e7a0ce6a057ce1401c16bd16b0c3a8a6bbd Mon Sep 17 00:00:00 2001 From: Marc Izquierdo Date: Tue, 20 Oct 2026 18:29:54 +0200 Subject: [PATCH 2/2] Omit review comment when the review has no body Bare approvals have a null review body, which jq printed as the string "null" at the end of the Teamwork comment. Co-Authored-By: Claude Opus 5.5 --- src/github.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/github.sh b/src/github.sh index dbe93858..23547aa7 100644 --- a/src/github.sh +++ b/src/github.sh @@ -53,7 +53,7 @@ github::get_review_state() { } github::get_review_comment() { - jq --raw-output .review.body "$GITHUB_EVENT_PATH" + jq --raw-output '.review.body // empty' "$GITHUB_EVENT_PATH" } github::print_all_data() {