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

Fix change detection using Github API #51

Merged
merged 7 commits into from
Nov 13, 2020
Merged

Conversation

dorny
Copy link
Owner

@dorny dorny commented Nov 13, 2020

Follow-up for #50

Previous PR fixed issued with retrieval of changes when there were 100+ changed files by rewriting for loop to while loop until API returns more data.

Later was discovered that this caused different bug - changed files were processed twice and as a result listed twice in *_files output. Turns out that root cause was in wrongly implemented pagination - pages starts at 1 instead of 0.

Another bug was later discovered - Github returns for deleted files status 'removed' while we were using enum variant 'deleted'.
This is also fixed in this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant