(accessToken string)
| 84 | } |
| 85 | |
| 86 | func makeGitHubHeader(accessToken string) http.Header { |
| 87 | // extra headers required by the GitHub API when making authenticated requests |
| 88 | extraHeaders := map[string]string{ |
| 89 | acceptHeader: "application/vnd.github.v3+json", |
| 90 | } |
| 91 | return makeAuthorizationHeader(tokenTypeToken, accessToken, extraHeaders) |
| 92 | } |
| 93 | |
| 94 | func (p *GitHubProvider) makeGitHubAPIEndpoint(endpoint string, params *url.Values) *url.URL { |
| 95 | basePath := p.ValidateURL.Path |
no test coverage detected