import type { Resource } from "@dpkit/core" import type { GithubResource } from "../Resource.ts" export function convertResourceToGithub( resource: Resource, ): Partial { if (!resource.path && !resource.name) { return {} } const githubResource: Partial = { path: resource.name, } return githubResource }