Skip to content

Commit

Permalink
Deploy Key Management
Browse files Browse the repository at this point in the history
  • Loading branch information
azenla committed Aug 24, 2014
1 parent 63a0d6b commit d72d971
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/src/common/github.dart
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,14 @@ class GitHub {
return postJSON("/user/keys", body: request.toJSON());
}

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

Future<PublicKey> createDeployKey(RepositorySlug slug, CreatePublicKey request) {
return postJSON("/repos/${slug.fullName}/keys", body: request.toJSON());
}

/**
* Search for Repositories using [query].
*
Expand Down

0 comments on commit d72d971

Please sign in to comment.