mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 23:40:18 +00:00
CommitView/Gistie: Use github.user and github.login
This changes the Gistie paste code to use the github.user and github.login git config variables for a token and login name.
This commit is contained in:
+8
-1
@@ -58,8 +58,15 @@ var gistie = function() {
|
||||
};
|
||||
|
||||
// TODO: Replace true with private preference
|
||||
if (true)
|
||||
token = Controller.getConfig_("github.token");
|
||||
login = Controller.getConfig_("github.user");
|
||||
if (token && login)
|
||||
{
|
||||
parameters.login = login;
|
||||
parameters.token = token;
|
||||
} else {
|
||||
parameters.private = true;
|
||||
}
|
||||
|
||||
new Ajax.Request("http://gist.github.com/gists", {
|
||||
method: 'post',
|
||||
|
||||
Reference in New Issue
Block a user