( project: string, skillName: string )
| 238 | } |
| 239 | |
| 240 | export async function getSkillFromGitHub( |
| 241 | project: string, |
| 242 | skillName: string |
| 243 | ): Promise<GitHubSkillsResult & { skill?: Skill & { project: string } }> { |
| 244 | const result = await listSkillsFromGitHub(project); |
| 245 | if (result.status !== "ok") return result; |
| 246 | const skill = result.skills.find((s) => s.name.toLowerCase() === skillName.toLowerCase()); |
| 247 | return { ...result, skill }; |
| 248 | } |
| 249 | |
| 250 | export async function downloadSkillFromGitHub( |
| 251 | skill: Skill & { project: string } |
no test coverage detected