()
| 115 | } |
| 116 | |
| 117 | func (g *githubTools) headers() map[string]string { |
| 118 | h := map[string]string{ |
| 119 | "Accept": "application/vnd.github.v3+json", |
| 120 | "User-Agent": "ARK-AI-Runtime", |
| 121 | } |
| 122 | if g.token != "" { |
| 123 | h["Authorization"] = "Bearer " + g.token |
| 124 | } |
| 125 | return h |
| 126 | } |
| 127 | |
| 128 | func (g *githubTools) listRepos(params map[string]interface{}) (string, error) { |
| 129 | user, _ := params["user"].(string) |
no outgoing calls
no test coverage detected