Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass avatar_url un git-gateway backend #7247

Merged
merged 3 commits into from
Jul 8, 2024
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,11 @@
if (!(await this.api!.hasWriteAccess())) {
throw new Error("You don't have sufficient permissions to access Decap CMS");
}
return { name: userData.name, login: userData.email } as User;
return {

Check failure on line 365 in packages/decap-cms-backend-git-gateway/src/implementation.ts

View workflow job for this annotation

GitHub Actions / build (macos-latest, 18.x)

Conversion of type '{ name: string; login: string; avatar_url: string; }' to type 'User' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.

Check failure on line 365 in packages/decap-cms-backend-git-gateway/src/implementation.ts

View workflow job for this annotation

GitHub Actions / build (macos-latest, 20.x)

Conversion of type '{ name: string; login: string; avatar_url: string; }' to type 'User' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.

Check failure on line 365 in packages/decap-cms-backend-git-gateway/src/implementation.ts

View workflow job for this annotation

GitHub Actions / build (macos-latest, 18.x)

Conversion of type '{ name: string; login: string; avatar_url: string; }' to type 'User' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.

Check failure on line 365 in packages/decap-cms-backend-git-gateway/src/implementation.ts

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest, 18.x)

Conversion of type '{ name: string; login: string; avatar_url: string; }' to type 'User' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.

Check failure on line 365 in packages/decap-cms-backend-git-gateway/src/implementation.ts

View workflow job for this annotation

GitHub Actions / build (macos-latest, 20.x)

Conversion of type '{ name: string; login: string; avatar_url: string; }' to type 'User' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.

Check failure on line 365 in packages/decap-cms-backend-git-gateway/src/implementation.ts

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest, 20.x)

Conversion of type '{ name: string; login: string; avatar_url: string; }' to type 'User' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.

Check failure on line 365 in packages/decap-cms-backend-git-gateway/src/implementation.ts

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest, 18.x)

Conversion of type '{ name: string; login: string; avatar_url: string; }' to type 'User' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.

Check failure on line 365 in packages/decap-cms-backend-git-gateway/src/implementation.ts

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest, 20.x)

Conversion of type '{ name: string; login: string; avatar_url: string; }' to type 'User' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
name: userData.name,
login: userData.email,
avatar_url: userData.avatar_url,
} as User;
});
}
async restoreUser() {
Expand Down
Loading