export async function getChangeRequestFunc()

in operations/codeup/changeRequests.ts [42:56]


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

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

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

  return ChangeRequestSchema.parse(response);
}