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:
Pieter de Bie
2008-10-14 01:00:42 +02:00
parent afb3d45656
commit b4bcc58b3e
2 changed files with 13 additions and 1 deletions
+8 -1
View File
@@ -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',