From c584fbddda5a7b3921aef1f2b2cbbfc16eb99e2a Mon Sep 17 00:00:00 2001 From: Justen Martin Date: Sun, 28 Jun 2020 20:09:48 -0500 Subject: [PATCH] Fixed repositories the list deserializing the value to issues instead of repositories (#12) --- bitbucket/repositories.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bitbucket/repositories.go b/bitbucket/repositories.go index 03d5c72..c62b55e 100644 --- a/bitbucket/repositories.go +++ b/bitbucket/repositories.go @@ -2,8 +2,9 @@ package bitbucket import ( "fmt" - "github.com/davidji99/simpleresty" "time" + + "github.com/davidji99/simpleresty" ) // RepositoriesService handles communication with the repository related methods @@ -16,7 +17,7 @@ type RepositoriesService service type Repositories struct { PaginationInfo - Values []*Issue `json:"values,omitempty"` + Values []*Repository `json:"values,omitempty"` } // Repository represents a Bitbucket repository.