Skip to content

Commit

Permalink
Merge pull request #2042 from xanzy/fix/slack
Browse files Browse the repository at this point in the history
Update Slack integration
  • Loading branch information
svanharmelen authored Nov 4, 2024
2 parents bc6554d + c09e0ae commit e53b7a1
Show file tree
Hide file tree
Showing 3 changed files with 361 additions and 197 deletions.
7 changes: 1 addition & 6 deletions examples/services.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,11 @@ func dataDogExample() {
ArchiveTraceEvents: gitlab.Bool(true),
}

_, err = git.Services.SetDataDogService(1, opts)
svc, _, err := git.Services.SetDataDogService(1, opts)
if err != nil {
log.Fatal(err)
}

// Query the integration
svc, _, err := git.Services.GetDataDogService(1)
if err != nil {
log.Fatal(err)
}
fmt.Printf(
"api_url: %s, datadog_env: %s, datadog_service: %s, datadog_site: %s, datadog_tags: %s",
svc.Properties.APIURL, svc.Properties.DataDogEnv, svc.Properties.DataDogService,
Expand Down
Loading

0 comments on commit e53b7a1

Please # to comment.