xanzy / go-gitlab

GitLab Go SDK
Apache License 2.0
2.37k stars 941 forks source link

fix: application settings marshalling #1825

Closed steve-mt closed 11 months ago

steve-mt commented 11 months ago

What

Update Settings.PerformanceBarAllowedGroupID to be an int instead string

Why

The API returns an int because it's a group ID:

curl -s --header "PRIVATE-TOKEN: TOKEN" "https://gitlab.example.com/api/v4/application/settings" | jq -r '.performance_bar_allowed_group_id'
1234

The documentation specifies that it's an int, and it's also stored as an int in the database.