Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the request body for Integration req #145

Merged
merged 1 commit into from
Jul 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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/[email protected]
with:
path-to-profile: covprofile
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 2 additions & 0 deletions integration/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down Expand Up @@ -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"`
Expand Down
28 changes: 14 additions & 14 deletions vendor/github.com/sirupsen/logrus/appveyor.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions vendor/modules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading