From abeaf149e91423a15a625cdadab59cfdcd548ed3 Mon Sep 17 00:00:00 2001 From: Hugues Malphettes Date: Wed, 11 Dec 2019 11:14:21 +0800 Subject: [PATCH] GetHeadCommit on a branch --- default_api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/default_api.go b/default_api.go index 62b554c..4e184b3 100644 --- a/default_api.go +++ b/default_api.go @@ -14701,7 +14701,7 @@ func (a *DefaultApiService) GetHeadCommit(project, repository, branch string, lo apibasepath = "/api/1.0" // or "apibasepath": "/api/latest" } - localVarPath := a.client.cfg.BasePath + apibasepath + "/projects/{projectKey}/repos/{repositorySlug}/commits?at=refs/heads/{branch}&start=0&limit=1" + localVarPath := a.client.cfg.BasePath + apibasepath + "/projects/{projectKey}/repos/{repositorySlug}/commits?until=refs/heads/{branch}&start=0&limit=1" localVarPath = strings.Replace(localVarPath, "{"+"projectKey"+"}", fmt.Sprintf("%v", project), -1) localVarPath = strings.Replace(localVarPath, "{"+"repositorySlug"+"}", fmt.Sprintf("%v", repository), -1) localVarPath = strings.Replace(localVarPath, "{"+"branch"+"}", fmt.Sprintf("%v", branch), -1)