Skip to content

GitHub Import: Include forks in github repository list

Kristina Doskich requested to merge bugfix/github-import-include-forks into master

What does this MR do and why?

GitHub importer switched to using GitHub Graphql search query instead of GitHub REST API for listing repositories. But as it is stated in the documentation:

By default, forks are not shown in search results. You can choose to include them in repository searches, and in code searches if they meet certain criteria.

This MR updates the Graphql search query with fork:true to include forked repositories in the provider list.

Corresponding issue: GitHub Import: forked repositories are not pres... (#402390 - closed)

Screenshots or screen recordings

Forked repository on GitHub:

Screenshot_2023-04-20_at_15.20.25

Is shown on the http://gdk.test:3000/import/github/status page:

Screenshot_2023-04-20_at_15.20.13

How to set up and validate locally

  1. Fork the project on the GitHub UI.
  2. Visit http://gdk.test:3000/import/github/status, the forked repository should be shown in the list

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Kristina Doskich

Merge request reports

Loading