Skip to content

Update GitHub PRs Importer to force update repository

George Koltsov requested to merge georgekoltsov/update-github-importer-prs into master

What does this MR do and why?

This MR updates GitHub Importer's PRs import process to force fetch remote repository when it needs to be updated. Currently, there is an issue with big projects import, where PRs import (and all of the consecutive relations) fails if repository tags are changes while import is running. The following scenario fails the import:

  1. Import is started
  2. While PRs are imported, source git repository tag is updated
  3. Remote fetch fails due to changed tags

This MR ensures import continues running by setting fetch remote forced: true to update any of the tags (or any other refs) that are changed during the import.


Screenshots or screen recordings

These are strongly recommended to assist reviewers and reduce the time to merge your change.

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

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 George Koltsov

Merge request reports