Skip to content
This repository was archived by the owner on Sep 12, 2024. It is now read-only.

Commit 0562825

Browse files
authored
feat: display avatars (#167)
1 parent f620082 commit 0562825

File tree

4 files changed

+5
-9
lines changed

4 files changed

+5
-9
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
Good First Issue Finder helps new open source contributors pave their path into the world of open source through good first issues.
66

7-
![eddiehub issue finder](https://user-images.githubusercontent.com/64529217/177002832-d17febfc-40cc-4077-a1f5-a4e1ed78d9d3.png)
7+
![eddiehub issue finder](https://user-images.githubusercontent.com/64529217/177034601-fe8dffce-cfac-4f61-889b-e3fe1ab7497d.png)
88

99
<!-- (Can be only done after merged 😅)
1010
## Example using Gitpod, ephemeral dev environment in the cloud (free)

src/global.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/// <reference types="@sveltejs/kit" />
22

33
export declare type Owner = {
4+
avatarUrl: string;
45
login: string;
56
};
67

src/lib/components/issue-card.svelte

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,8 @@
1616
<div class="flex items-center justify-between">
1717
<div class="flex min-w-0 items-center">
1818
<img
19-
class="mr-4 object-contain dark:hidden"
20-
src="/images/githubmark-light.svg"
21-
width="32"
22-
alt="github"
23-
/>
24-
<img
25-
class="mr-4 hidden object-contain dark:block"
26-
src="/images/githubmark-dark.svg"
19+
class="mr-4 rounded-full object-contain"
20+
src={issue.repository.owner.avatarUrl}
2721
width="32"
2822
alt="github"
2923
/>

src/routes/api/get-issues.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ export const post: RequestHandler = async ({ request }) => {
3838
id
3939
}
4040
owner {
41+
avatarUrl
4142
login
4243
}
4344
}

0 commit comments

Comments
 (0)