Skip to content

Commit

Permalink
Listing/Checking of Available Issue Assignees
Browse files Browse the repository at this point in the history
  • Loading branch information
azenla committed Aug 30, 2014
1 parent 2eb1ea8 commit e5e92d2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/src/common/github.dart
Expand Up @@ -188,6 +188,14 @@ class GitHub {
Future<bool> deleteLabel(RepositorySlug slug, String name) {
return request("DELETE", "/repos/${slug.fullName}/labels/${name}").then((response) => response.statusCode == StatusCodes.NO_CONTENT);
}

Stream<User> availableAssignees(RepositorySlug slug) {
return new PaginationHelper(this).objects("GET", "/repos/${slug.fullName}/assignees", User.fromJSON);
}

Future<bool> isAvailableAssignee(RepositorySlug slug, String name) {
return request("GET", "/repos/${slug.fullName}/assignees/${name}").then((response) => response.statusCode == StatusCodes.NO_CONTENT);
}

/**
* Fetches the teams for the specified organization.
Expand Down

0 comments on commit e5e92d2

Please sign in to comment.