Skip to content

Commit 755c7f8

Browse files
committed
create/delete repo api
1 parent d614011 commit 755c7f8

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

github.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,17 @@
151151
cb(err, res);
152152
});
153153
};
154+
155+
// Create a repo
156+
// -------
157+
this.createRepo = function(options, cb) {
158+
_request("POST", "/user/repos", options, cb);
159+
};
160+
161+
162+
163+
164+
154165
};
155166

156167

@@ -169,6 +180,15 @@
169180
"sha": null
170181
};
171182

183+
184+
// Delete a repo
185+
// --------
186+
187+
this.delete = function(cb) {
188+
console.error (repoPath);
189+
_request("DELETE", repoPath, options, cb);
190+
};
191+
172192
// Uses the cache if branch has not been changed
173193
// -------
174194

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy