Skip to content

Commit

Permalink
Fix Issue.isOpen and Issue.isClosed getters (SpinlockLabs#398)
Browse files Browse the repository at this point in the history
* Update issues.dart

* require dart 3.0; update to the latest package:lints (SpinlockLabs#399)

* require dart 3.0; update to the latest package:lints

* update pubspec and changelog

* update the pubspec version; add a changelog entry
  • Loading branch information
devoncarew authored Feb 26, 2024
1 parent e0bd51a commit f5a565f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 9.24.0

* Bug fixes to the `Issue.isOpen` and `Issue.isClosed` getters.

## 9.23.0

* Require Dart 3.0.
Expand Down
4 changes: 2 additions & 2 deletions lib/src/common/model/issues.dart
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ class Issue {
/// The user who closed the issue
User? closedBy;

bool get isOpen => state == 'open';
bool get isClosed => state == 'closed';
bool get isOpen => state == 'OPEN';
bool get isClosed => state == 'CLOSED';

// The following properties were added to support the Timeline API.

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.23.0
version: 9.24.0
description: A high-level GitHub API Client Library that uses Github's v3 API
homepage: https://github.com/SpinlockLabs/github.dart

Expand Down

0 comments on commit f5a565f

Please sign in to comment.