export async function getRepositoryFunc()

in operations/codeup/repositories.ts [27:40]


export async function getRepositoryFunc(
  organizationId: string,
  repositoryId: string
): Promise<z.infer<typeof RepositorySchema>> {
  const encodedRepoId = handleRepositoryIdEncoding(repositoryId);

  const url = `/oapi/v1/codeup/organizations/${organizationId}/repositories/${encodedRepoId}`;

  const response = await yunxiaoRequest(url, {
    method: "GET",
  });

  return RepositorySchema.parse(response);
}