From 329d852ac38ed58fd5acd516aaab2d67e9e2d5e7 Mon Sep 17 00:00:00 2001 From: Parker Lougheed Date: Wed, 13 May 2026 21:15:22 -0500 Subject: [PATCH 1/2] Update IssuesService.updateComment to use PATCH instead of POST --- lib/src/common/issues_service.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/common/issues_service.dart b/lib/src/common/issues_service.dart index ed061846..6b6878dc 100644 --- a/lib/src/common/issues_service.dart +++ b/lib/src/common/issues_service.dart @@ -252,7 +252,7 @@ class IssuesService extends Service { /// API docs: https://docs.github.com/en/rest/reference/issues#update-an-issue-comment Future updateComment(RepositorySlug slug, int id, String body) { final it = GitHubJson.encode({'body': body}); - return github.postJSON( + return github.patchJSON( '/repos/${slug.fullName}/issues/comments/$id', body: it, convert: IssueComment.fromJson, From 167db3b6529a8d56c962469627cd562ef3472eaa Mon Sep 17 00:00:00 2001 From: Parker Lougheed Date: Wed, 13 May 2026 21:17:46 -0500 Subject: [PATCH 2/2] Acknowledge change in changelog and prepare for release --- CHANGELOG.md | 4 ++++ pubspec.yaml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8c92ab04..b8f8d9f9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 9.25.1 + +* Correct request type of `IssuesService.updateComment`. + ## 9.25.0 * Require Dart 3.5 diff --git a/pubspec.yaml b/pubspec.yaml index 9cd46e05..40fa2946 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,5 +1,5 @@ name: github -version: 9.25.0 +version: 9.25.1 description: A high-level GitHub API Client Library that uses Github's v3 API homepage: https://github.com/SpinlockLabs/github.dart