feat: Expose public_email attribute for gitlab_user data source

Description

This MR adds the public_email computed attribute to the singular gitlab_user data source and clarifies the purpose of the existing email attribute.

Currently, the email attribute is used as a search parameter. However, a user's configured public email in GitLab may differ from the email used to search or authenticate.

Changes included:

  1. Added a computed public_email attribute to the gitlab_user data source schema.

  2. Updated the mapping logic in Read to map user.PublicEmail from the upstream API response.

  3. Updated the MarkdownDescription for the existing email attribute to explicitly state that it is primarily for searching and does not necessarily represent the public email.

  4. Added public_email assertions to the existing acceptance tests in datasource_gitlab_user_test.go.

Closes #6744

Edited by Mohamed Othman

Merge request reports

Loading