+
Skip to content

Add starring for repositories #205

Closed
@ssergienko

Description

@ssergienko

hi, mate.
thanks for you job. use your plugin on a project and have fun )
I've added peace of code for starring of repositories here - ssergienko@76f6b51
don't know why so many changes are displaying, I've just added few lines.
the peace of code is:

// starring
this.isStarred = function(owner, repo, cb) {
_request("GET", "/user/starred/" + owner + '/' + repo, null, function(err,res) {
cb(err,res);
});
};
this.star = function(owner, repo, cb) {
_request("PUT", "/user/starred/" + owner + '/' + repo, null, function(err,res) {
cb(err,res);
});
};
this.unstar = function(owner, repo, cb) {
_request("DELETE", "/user/starred/" + owner + '/' + repo, null, function(err,res) {
cb(err,res);
});
};

hope it'll help

PS: fixed bug with "var btoa". now it works

thanks,
Serge

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载