Switch from commitEmail to publicEmail for email attribute

Signed-off-by: Stephen Barry <sbarry@poppulo.com>
This commit is contained in:
Stephen Barry
2023-08-01 10:37:31 +01:00
parent f85f6730a6
commit 0b569236eb
2 changed files with 3 additions and 3 deletions
@@ -120,7 +120,7 @@ export class GitLabClient {
user {
id
username
commitEmail
publicEmail
name
state
webUrl
@@ -156,7 +156,7 @@ export class GitLabClient {
const formattedUserResponse = {
id: Number(userItem.user.id.replace(/^gid:\/\/gitlab\/User\//, '')),
username: userItem.user.username,
email: userItem.user.commitEmail,
email: userItem.user.publicEmail,
name: userItem.user.name,
state: userItem.user.state,
web_url: userItem.user.webUrl,
@@ -80,7 +80,7 @@ export type GitLabSaasUsersResponse = {
user: {
id: string;
username: string;
commitEmail: string;
publicEmail: string;
name: string;
state: string;
webUrl: string;