Add emoji_events support to gitlab_project_hook resource

Description:

The gitlab_project_hook resource currently lacks support for the emoji_events trigger. While this was recently added to gitlab_group_hook, it is missing from the project-level resource.

Technical Context:

  • API Support: GitLab has supported emoji_events in the REST API since version 16.0.
  • SDK Support: The provider's go.mod currently uses gitlab.com/gitlab-org/api/client-go v1.14.0, which already includes the EmojiEvents field in the ProjectHook struct.
  • Current State: The field is simply missing from the schema definition and the CRUD mapping logic in the provider.

Proposed Changes:

  1. Update the schema in internal/provider/resource_gitlab_project_hook.go to include the emoji_events boolean attribute.

References:

  • GitLab API Docs: Project Hooks API
  • Related:
    • client-go Issue: gitlab-org/api/client-go#2191 (closed)
    • client-go release: v1.12.0

Implementation Guide

  • Follow the CONTRIBUTING.md guide for setting up your local development environment and clone the community fork of this project.
  • Add emoji_events as an attribute to internal/provider/resource_gitlab_project_hook.go. Follow the job_events attribute for an idea of where to make the changes.
  • Run make reviewable before raising a merge request with your changes.
Edited Jan 22, 2026 by 🤖 GitLab Bot 🤖
Assignee Loading
Time tracking Loading