Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

path_with_namespace does not exist on type ProjectSchema #1482

Closed
cmckni3 opened this issue Jan 22, 2021 · 0 comments · Fixed by #1768
Closed

path_with_namespace does not exist on type ProjectSchema #1482

cmckni3 opened this issue Jan 22, 2021 · 0 comments · Fixed by #1768
Milestone

Comments

@cmckni3
Copy link

cmckni3 commented Jan 22, 2021

  const projectsService = new Projects({ token });

  const allProjects = await projectsService.all({
    membership: true,
    simple: true,
    order_by: 'name',
    sort: 'asc',
  });

  const filteredProjects = allProjects.filter(p => {
    return p.path_with_namespace.match(projectPatternToMatch);
  });

image

Workaround right now is to use (p as any).path_with_namespace

@jdalrymple jdalrymple added the bug label Jan 26, 2021
@jdalrymple jdalrymple linked a pull request Mar 5, 2021 that will close this issue
5 tasks
@jdalrymple jdalrymple added this to the next milestone Apr 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants