Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var client = github.client({
- username: username,
- password: password
- });
- var endpoint = '/repos/' + username + '/' + repo;
- client.del(endpoint, function (err, status, body) {
- if (err) {
- return cb(err);
- }
- if (status === 204) { //Status: 204 No Content
- app.log.info('Succesfully deleted ' + endpoint.blue);
- return cb(null, 'OK');
- }
- });
Add Comment
Please, Sign In to add comment