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

Properly count the number of repos after a github scan resume #625

Merged
merged 2 commits into from
Jun 17, 2022

Conversation

trufflesteeeve
Copy link
Collaborator

The number of repos was inaccurately reported when a scan was resumed. This fixes that. The fix is also already included in the gitlab resume PR.

@@ -790,7 +790,7 @@ func (s *Source) normalizeRepos(ctx context.Context, apiClient *github.Client) {
}

// setProgressCompleteWithRepo calls the s.SetProgressComplete after safely setting up the encoded resume info string.
func (s *Source) setProgressCompleteWithRepo(index int, repoURL string) {
func (s *Source) setProgressCompleteWithRepo(index int, offset int, repoURL string) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggestion (optional): Same suggestion as the gitlab PR, it would be nice to have a test to prevent regressions.

@trufflesteeeve trufflesteeeve merged commit e793f4a into main Jun 17, 2022
@trufflesteeeve trufflesteeeve deleted the fix-github-progress-count branch June 17, 2022 20:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants