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/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, 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