Skip to content
Permalink
Browse files

Listing/Checking of Available Issue Assignees

  • Loading branch information
kendfinger committed Aug 30, 2014
1 parent 2eb1ea8 commit e5e92d2c1d16ab4912522392e84d1e16a2f353ab
Showing with 8 additions and 0 deletions.
  1. +8 −0 lib/src/common/github.dart
@@ -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.

0 comments on commit e5e92d2

Please sign in to comment.
You can’t perform that action at this time.