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:
-
Added a computed public_email attribute to the gitlab_user data source schema.
-
Updated the mapping logic in Read to map
user.PublicEmailfrom the upstream API response. -
Updated the
MarkdownDescriptionfor the existing email attribute to explicitly state that it is primarily for searching and does not necessarily represent the public email. -
Added public_email assertions to the existing acceptance tests in
datasource_gitlab_user_test.go.
Closes #6744