From 04f512dfb0ae4682110c4a3beb41980234e06cd6 Mon Sep 17 00:00:00 2001 From: drmercer-lucid Date: Tue, 3 Feb 2026 15:25:04 -0700 Subject: [PATCH] Add warning logs for GitHub compare API failures Log warnings when the CompareCommits API call fails or returns nil, to help diagnose issues with PR/commit listing in release descriptions. Co-Authored-By: Claude Opus 4.5 --- internal/augmenter_github.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/internal/augmenter_github.go b/internal/augmenter_github.go index 464e3b5..5a08b6d 100644 --- a/internal/augmenter_github.go +++ b/internal/augmenter_github.go @@ -66,6 +66,11 @@ func (a GithubAugmenter) RenderMessage(config Config, change Change) (string, st PerPage: 100, }) defer res.Body.Close() + if err != nil { + LogWarning("Failed to compare commits for %s/%s: %v", owner, repo, err) + } else if comparison == nil { + LogWarning("Compare commits for %s/%s returned nil comparison", owner, repo) + } result1 := GithubLink{ Title: "Compare",