docs(repo garden): improve func godoc
Signed-off-by: Babak K. Shandiz <babakks@github.com>
This commit is contained in:
parent
d3b333e5be
commit
0e53651bb2
1 changed files with 2 additions and 1 deletions
|
|
@ -67,7 +67,8 @@ func getCommits(client *http.Client, repo ghrepo.Interface, maxCommits int) ([]*
|
|||
return commits, nil
|
||||
}
|
||||
|
||||
// getResponse performs the API call and returns the response's link header.
|
||||
// getResponse performs the API call and returns the response's link header values.
|
||||
// If the "Link" header is missing, the returned slice will be nil.
|
||||
func getResponse(client *http.Client, host, path string, data interface{}) ([]string, error) {
|
||||
url := ghinstance.RESTPrefix(host) + path
|
||||
req, err := http.NewRequest("GET", url, nil)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue