From 0e53651bb26569f0b19df91fa671d1750f5db228 Mon Sep 17 00:00:00 2001 From: "Babak K. Shandiz" Date: Mon, 3 Nov 2025 16:10:23 +0000 Subject: [PATCH] docs(repo garden): improve func godoc Signed-off-by: Babak K. Shandiz --- pkg/cmd/repo/garden/http.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/cmd/repo/garden/http.go b/pkg/cmd/repo/garden/http.go index 3ca60d0bd..d968296f4 100644 --- a/pkg/cmd/repo/garden/http.go +++ b/pkg/cmd/repo/garden/http.go @@ -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)