Skip to content

Commit

Permalink
feat: Add deploy keys enable functionality (#155) thanks to [Michael …
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Matzka authored and jdalrymple committed Aug 15, 2018
1 parent bc3b366 commit 66547ad
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/services/DeployKeys.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ class DeployKeys extends BaseService {

return RequestHelper.get(this, `projects/${pId}/deploy_keys/${kId}`);
}

enable(projectId, keyId) {
const [pId, kId] = [projectId, keyId].map(encodeURIComponent);

return RequestHelper.post(this, `projects/${pId}/deploy_keys/${kId}/enable`);
}
}

export default DeployKeys;

0 comments on commit 66547ad

Please sign in to comment.