Fix issue count in imported projects stats field

What does this MR do and why?

GitHub considers every pull request an issue. So during fetching action each issue that was actually a pull request was also counted as an issue. Fix issue count in imported projects stats field Github import: incorrect amount of imported issues in import status endpoint to count issues only.

Screenshots or screen recordings

Fetched issue count after fix on GET /api/v4/projects/{id}/import

Actual issues count in rspec/rspec-mocks repo

Count of issues that were imported

How to set up and validate locally

  1. Start import rspec/rspec-mocks
  2. Check /api/v4/projects/{project_id}/import endpoint after import is finished.
Edited by Kristina Doskich

Merge request reports

Loading