import { Repo , PullRequest } from '../../../basic/DataTypes' ; import { GitlabGraphqlClient } from '../client/GitlabGraphqlClient' ; import { getRepo } from './getRepo' ; import { getIssues } from './getIssues' ; import { getPullRequests } from './getPullRequests' ; export async function getAll ( client , fullPath ) { const repo = await getRepo ( client , fullPath ) ; const myissue = getIssues ( client , fullPath , 50 ) ; const mypulls = getPullRequests ( client , fullPath , 50 ) ; const arr = await Promise . all ( [ myissue , mypulls ] ) ; repo . issues = arr [ 0 ] ; repo . pulls = arr [ 1 ] as PullRequest [ ] ; return repo ; }