Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 9.25.1

* Correct request type of `IssuesService.updateComment`.

## 9.25.0

* Require Dart 3.5
Expand Down
2 changes: 1 addition & 1 deletion lib/src/common/issues_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ class IssuesService extends Service {
/// API docs: https://docs.github.com/en/rest/reference/issues#update-an-issue-comment
Future<IssueComment> 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,
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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

Expand Down
Loading