Skip to content

Commit

Permalink
Bump the versions on some of the API calls.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Selby authored and benmatselby committed May 25, 2021
1 parent 94dcd6d commit 571c10a
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 3 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion azuredevops/delivery_plans.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion azuredevops/teams.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 2 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
module github.com/benmatselby/go-azuredevops

go 1.16

require github.com/google/go-querystring v1.0.0
1 change: 1 addition & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -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=

0 comments on commit 571c10a

Please sign in to comment.