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 togitlabGroupHookModel,groupHookAttributes(), andflattenGroupHook()(shared by thegitlab_group_hookandgitlab_group_hooksdata sources).internal/provider/resource_gitlab_group_hook.go– added both fields to the resource model struct, schema,AddGroupHookOptions(Create),EditGroupHookOptions(Update), andmodelToStateModel().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