Add milestone_events and resource_access_token_events to gitlab_group_hook

What does this MR do?

Adds two missing event type attributes to the gitlab_group_hook resource and its related data sources:

  • milestone_events – invoke the hook when a milestone is created, closed, reopened, or deleted.
  • resource_access_token_events – invoke the hook when an access token expires in the next 7 days.

Closes #6829 (closed)

Changes

  • internal/provider/schema_gitlab_group_hook.go – added both fields to gitlabGroupHookModel, groupHookAttributes(), and flattenGroupHook() (shared by the gitlab_group_hook and gitlab_group_hooks data sources).
  • internal/provider/resource_gitlab_group_hook.go – added both fields to the resource model struct, schema, AddGroupHookOptions (Create), EditGroupHookOptions (Update), and modelToStateModel().
  • internal/provider/resource_gitlab_group_hook_test.go – added both attributes to the "set all attributes" test steps.
  • examples/resources/gitlab_group_hook/resource.tf – added both attributes to the all-attributes example.

How to test

unset GITLAB_TOKEN && make testacc-up
make testacc RUN=TestAccGitlabGroupHook_basic
make testacc-down

Merge request reports

Loading