Skip to content

Commit 68ed135

Browse files
authored
Update IssuesService.updateComment to use PATCH instead of POST (#437)
* Update IssuesService.updateComment to use PATCH instead of POST * Acknowledge change in changelog and prepare for release
1 parent dd9d0ec commit 68ed135

3 files changed

Lines changed: 6 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 9.25.1
2+
3+
* Correct request type of `IssuesService.updateComment`.
4+
15
## 9.25.0
26

37
* Require Dart 3.5

lib/src/common/issues_service.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ class IssuesService extends Service {
252252
/// API docs: https://docs.github.com/en/rest/reference/issues#update-an-issue-comment
253253
Future<IssueComment> updateComment(RepositorySlug slug, int id, String body) {
254254
final it = GitHubJson.encode({'body': body});
255-
return github.postJSON(
255+
return github.patchJSON(
256256
'/repos/${slug.fullName}/issues/comments/$id',
257257
body: it,
258258
convert: IssueComment.fromJson,

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: github
2-
version: 9.25.0
2+
version: 9.25.1
33
description: A high-level GitHub API Client Library that uses Github's v3 API
44
homepage: https://github.com/SpinlockLabs/github.dart
55

0 commit comments

Comments
 (0)