|
|
|
@ -28,10 +28,12 @@ func SetGithubCredentials(id, secret string) {
|
|
|
|
|
githubCred = "client_id=" + id + "&client_secret=" + secret |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// GetGithubDoc downloads tarball from github.com.
|
|
|
|
|
func GetGithubDoc(client *http.Client, match map[string]string, commit string) (*Package, []string, error) { |
|
|
|
|
/*SetGithubCredentials("1862bcb265171f37f36c", "308d71ab53ccd858416cfceaed52d5d5b7d53c5f") |
|
|
|
|
SetGithubCredentials("1862bcb265171f37f36c", "308d71ab53ccd858416cfceaed52d5d5b7d53c5f") |
|
|
|
|
match["cred"] = githubCred |
|
|
|
|
|
|
|
|
|
/* |
|
|
|
|
var refs []*struct { |
|
|
|
|
Object struct { |
|
|
|
|
Type string |
|
|
|
|