fix: guard PR/issue comment listing against non-list API payloads (Closes #485) #487

Merged
sysadmin merged 1 commits from feat/issue-485-lease-comments-non-list-guard into master 2026-07-08 02:46:04 -05:00
1 Commits
Author SHA1 Message Date
sysadminandClaude Opus 4.8 08202f7eaa fix: guard PR/issue comment listing against non-list API payloads (Closes #485)
_list_pr_lease_comments and gitea_list_issue_comments now fail safe to an
empty list when the comments API returns a non-list payload (e.g. an error
object), preventing KeyError: slice on the lease and listing paths.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
2026-07-08 02:17:37 -04:00