async function gitIssues(token, projectId) {
  const api = new Gitlab({
    host: 'https://git.cto.ai',
    token,
  })
  try {
    const results = await api.Issues.all({
      projectId,
      groupId: null,
      scope: 'all',
      state: 'opened',
    })
    return results
  } catch (err) {
    await handleError(err, 'Unable to retrieve GitLab issues')
  }
}
/**
 * gitIssues gets all open issues in the given project.
 *
 * @param {string} token     The GitLab API key
 * @param {string} projectId The project ID to search in
 *
 * @return {array} The matching issues found
 */
gitIssues gets all open issues in the given project.
@param {string} token     The GitLab API key
@param {string} projectId The project ID to search in

@return {array} The matching issues found
gitIssues gets all open issues in the given project . @param { string } token The GitLab API key @param { string } projectId The project ID to search in @return { array } The matching issues found
async function gitIssues(token, projectId) {
  const api = new Gitlab({
    host: 'https://git.cto.ai',
    token,
  })
  try {
    const results = await api.Issues.all({
      projectId,
      groupId: null,
      scope: 'all',
      state: 'opened',
    })
    return results
  } catch (err) {
    await handleError(err, 'Unable to retrieve GitLab issues')
  }
}
async function gitIssues ( token , projectId ) { const api = new Gitlab ( { host : 'https://git.cto.ai' , token , } ) try { const results = await api . Issues . all ( { projectId , groupId : null , scope : 'all' , state : 'opened' , } ) return results } catch ( err ) { await handleError ( err , 'Unable to retrieve GitLab issues' ) } }
gitIssues gets all open issues in the given project.
gitIssues gets all open issues in the given project .