docs(repo garden): improve func godoc

Signed-off-by: Babak K. Shandiz <babakks@github.com>
This commit is contained in:
Babak K. Shandiz 2025-11-03 16:10:23 +00:00
parent d3b333e5be
commit 0e53651bb2
No known key found for this signature in database
GPG key ID: 9472CAEFF56C742E

View file

@ -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)