feat(topics): add organization_id to ListTopics and CreateTopic options

What

  • Adds OrganizationID *int64 to ListTopicsOptions (query parameter) and CreateTopicOptions (request body).
  • UpdateTopicOptions is unchanged: the update endpoint doesn't accept organization_id.
  • GitLab marks the create parameter as experimental, so the field's doc comment says it may change.

Tests

  • TestTopicsService_ListTopics_OrganizationID checks that the filter is sent.
  • TestTopicsService_CreateTopic_OrganizationID checks that the field is in the request body.
  • TestTopicsService_DeleteTopic covers success, a request option error and a 404. It had no coverage before.

Closes #2313 (closed)

Edited by Zubeen

Merge request reports

Loading
Loading