diff --git a/CHANGELOG.md b/CHANGELOG.md index 4da2f75..ca862fe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,8 +1,11 @@ # Changelog -## 0.2.0 +## 0.3.0 - Bumped some of the API versions used. + +## 0.2.0 + - Switched from `master` to `main`. ## 0.1.0 diff --git a/azuredevops/delivery_plans.go b/azuredevops/delivery_plans.go index 675fe27..3509020 100644 --- a/azuredevops/delivery_plans.go +++ b/azuredevops/delivery_plans.go @@ -63,7 +63,7 @@ type DeliveryPlansListOptions struct { // List returns a list of delivery plans func (s *DeliveryPlansService) List(opts *DeliveryPlansListOptions) ([]DeliveryPlan, int, error) { - URL := fmt.Sprintf("_apis/work/plans?api-version=5.0-preview.6") + URL := fmt.Sprintf("_apis/work/plans?api-version=6.1-preview.1") URL, err := addOptions(URL, opts) request, err := s.client.NewRequest("GET", URL, nil) diff --git a/azuredevops/teams.go b/azuredevops/teams.go index 39b87f7..da5eab4 100644 --- a/azuredevops/teams.go +++ b/azuredevops/teams.go @@ -31,7 +31,7 @@ type TeamsListOptions struct { // List returns list of the teams func (s *TeamsService) List(opts *TeamsListOptions) ([]Team, int, error) { - URL := fmt.Sprintf("/_apis/teams?api-version=4.1") + URL := fmt.Sprintf("/_apis/teams?api-version=6.1-preview.3") URL, err := addOptions(URL, opts) request, err := s.client.NewBaseRequest("GET", URL, nil) diff --git a/go.mod b/go.mod index 6857491..8d2563e 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,5 @@ module github.com/benmatselby/go-azuredevops +go 1.16 + require github.com/google/go-querystring v1.0.0 diff --git a/go.sum b/go.sum index 5154a28..5168537 100644 --- a/go.sum +++ b/go.sum @@ -1,2 +1,3 @@ github.com/benmatselby/go-azuredevops v0.0.0-20190112144040-c2a0219308ca/go.mod h1:1iGYUo0OwirKk+wm+lftDoaTtOgRYRuIZ81Fq1IJZTw= +github.com/google/go-querystring v1.0.0 h1:Xkwi/a1rcvNg1PPYe5vI8GbeBY/jrVuDX5ASuANWTrk= github.com/google/go-querystring v1.0.0/go.mod h1:odCYkC5MyYFN7vkCjXpyrEuKhc/BUO6wN/zVPAxq5ck=