Skip to content
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.

Commit

Permalink
Update all serices so they return the service when updated
Browse files Browse the repository at this point in the history
  • Loading branch information
svanharmelen committed Oct 20, 2024
1 parent ceea2d5 commit 05a4a80
Show file tree
Hide file tree
Showing 3 changed files with 266 additions and 144 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 05a4a80

Please sign in to comment.