({ owner, name })
| 77 | } |
| 78 | |
| 79 | async function readCodeberg({ owner, name }) { |
| 80 | const headers = codebergToken ? { Authorization: `token ${codebergToken}` } : {} |
| 81 | const data = await requestJson(`https://codeberg.org/api/v1/repos/${owner}/${name}`, headers) |
| 82 | |
| 83 | return { |
| 84 | stars: data.stars_count ?? 0, |
| 85 | updatedAt: data.updated_at ?? null, |
| 86 | ownerAvatar: data.owner?.avatar_url ?? null, |
| 87 | accessible: true |
| 88 | } |
| 89 | } |
no test coverage detected