diff --git a/lib/src/common/github.dart b/lib/src/common/github.dart index 78a38de6..8836b8b7 100644 --- a/lib/src/common/github.dart +++ b/lib/src/common/github.dart @@ -395,6 +395,14 @@ class GitHub { return postJSON("/user/keys", body: request.toJSON()); } + Stream deployKeys(RepositorySlug slug) { + return new PaginationHelper(this).objects("GET", "/repos/${slug.fullName}/keys", PublicKey.fromJSON); + } + + Future createDeployKey(RepositorySlug slug, CreatePublicKey request) { + return postJSON("/repos/${slug.fullName}/keys", body: request.toJSON()); + } + /** * Search for Repositories using [query]. *