Skip to content

Commit

Permalink
feat: Add transfer a project to a new namespace (#145)
Browse files Browse the repository at this point in the history
  • Loading branch information
jetersen authored and jdalrymple committed Aug 11, 2018
1 parent 395f83c commit 87e9f55
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/services/Projects.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,11 @@ class Projects extends BaseService {
return RequestHelper.post(this, `projects/${pId}/statuses/${sha}`, { state, ...options });
}

transfer(projectId, namespace) {
const pId = encodeURIComponent(projectId);
return RequestHelper.put(this, `projects/${pId}/transfer`, namespace);
}

unshare(projectId, groupId) {
const [pId, gId] = [projectId, groupId].map(encodeURIComponent);

Expand Down

0 comments on commit 87e9f55

Please sign in to comment.