Skip to content

Commit 66547ad

Browse files
Michael Matzkajdalrymple
authored andcommitted
feat: Add deploy keys enable functionality (#155) thanks to [Michael Matzka](https://github.com/mimaidms )
1 parent bc3b366 commit 66547ad

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/services/DeployKeys.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ class DeployKeys extends BaseService {
1818

1919
return RequestHelper.get(this, `projects/${pId}/deploy_keys/${kId}`);
2020
}
21+
22+
enable(projectId, keyId) {
23+
const [pId, kId] = [projectId, keyId].map(encodeURIComponent);
24+
25+
return RequestHelper.post(this, `projects/${pId}/deploy_keys/${kId}/enable`);
26+
}
2127
}
2228

2329
export default DeployKeys;

0 commit comments

Comments
 (0)