diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 256fc3f..9cc8f95 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,7 +10,7 @@ jobs: strategy: matrix: os: [ macos-latest, windows-latest, ubuntu-latest ] - go: [ 1.12, 1.13, 1.14 ] + go: [ 1.16, 1.17, 1.18 ] steps: - name: Checkout the code uses: actions/checkout@v2 @@ -21,7 +21,7 @@ jobs: - name: Run tests run: go test -v -coverprofile=covprofile ./... - name: Send coverage - if: ${{ matrix.os == 'macos-latest' && matrix.go == '1.14'}} + if: ${{ matrix.os == 'macos-latest' && matrix.go == '1.16'}} uses: shogo82148/actions-goveralls@v1.4.2 with: path-to-profile: covprofile \ No newline at end of file diff --git a/go.mod b/go.mod index 3902524..b4ce683 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/opsgenie/opsgenie-go-sdk-v2 -go 1.12 +go 1.16 require ( github.com/hashicorp/go-retryablehttp v0.5.1 diff --git a/integration/request.go b/integration/request.go index d52b4e1..3ba22fa 100644 --- a/integration/request.go +++ b/integration/request.go @@ -49,6 +49,7 @@ type APIBasedIntegrationRequest struct { Name string `json:"name"` Type string `json:"type"` AllowWriteAccess *bool `json:"allowWriteAccess"` + AllowConfigurationAccess *bool `json:"allowConfigurationAccess"` IgnoreRespondersFromPayload *bool `json:"ignoreRespondersFromPayload"` SuppressNotifications *bool `json:"suppressNotifications"` OwnerTeam *og.OwnerTeam `json:"ownerTeam,omitempty"` @@ -79,6 +80,7 @@ type WebhookIntegrationRequest struct { Name string `json:"name"` Type string `json:"type"` AllowWriteAccess *bool `json:"allowWriteAccess"` + AllowConfigurationAccess *bool `json:"allowConfigurationAccess"` SuppressNotifications *bool `json:"suppressNotifications"` OwnerTeam *og.OwnerTeam `json:"ownerTeam,omitempty"` Responders []Responder `json:"responders,omitempty"` diff --git a/vendor/github.com/sirupsen/logrus/appveyor.yml b/vendor/github.com/sirupsen/logrus/appveyor.yml index b4ffca2..96c2ce1 100644 --- a/vendor/github.com/sirupsen/logrus/appveyor.yml +++ b/vendor/github.com/sirupsen/logrus/appveyor.yml @@ -1,14 +1,14 @@ -version: "{build}" -platform: x64 -clone_folder: c:\gopath\src\github.com\sirupsen\logrus -environment: - GOPATH: c:\gopath -branches: - only: - - master -install: - - set PATH=%GOPATH%\bin;c:\go\bin;%PATH% - - go version -build_script: - - go get -t - - go test +version: "{build}" +platform: x64 +clone_folder: c:\gopath\src\github.com\sirupsen\logrus +environment: + GOPATH: c:\gopath +branches: + only: + - master +install: + - set PATH=%GOPATH%\bin;c:\go\bin;%PATH% + - go version +build_script: + - go get -t + - go test diff --git a/vendor/modules.txt b/vendor/modules.txt index e239de6..83767c3 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -3,18 +3,23 @@ github.com/davecgh/go-spew/spew # github.com/hashicorp/go-cleanhttp v0.5.0 github.com/hashicorp/go-cleanhttp # github.com/hashicorp/go-retryablehttp v0.5.1 +## explicit github.com/hashicorp/go-retryablehttp # github.com/konsorten/go-windows-terminal-sequences v1.0.1 github.com/konsorten/go-windows-terminal-sequences # github.com/pkg/errors v0.8.1 +## explicit github.com/pkg/errors # github.com/pmezard/go-difflib v1.0.0 github.com/pmezard/go-difflib/difflib # github.com/sirupsen/logrus v1.4.2 +## explicit github.com/sirupsen/logrus # github.com/stretchr/testify v1.3.0 +## explicit github.com/stretchr/testify/assert # golang.org/x/net v0.0.0-20201224014010-6772e930b67b +## explicit golang.org/x/net/context # golang.org/x/sys v0.0.0-20201119102817-f84b799fce68 golang.org/x/sys/internal/unsafeheader