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

feat(plugins/lines): add plugin_lines_delay to mitigate first query results #1530

Merged
merged 3 commits into from
Sep 12, 2023

Conversation

lowlighter
Copy link
Owner

Add a new option plugin_lines_delay to perform a second query on rest.repos.getContributorsStats (which is sometimes returning zeroed values on first query, but returning correct values upon subsequent queries after a certain amount of time) to mitigate the mentioned behaviour in parenthesis

Also fixes #1480 on the way

@github-actions

This comment has been minimized.

@lowlighter lowlighter merged commit 53f4cb6 into master Sep 12, 2023
12 checks passed
@lowlighter lowlighter deleted the feat-line-delay branch September 12, 2023 03:07
@revilowaldow
Copy link

What is a suggested delay to use?

@lowlighter
Copy link
Owner Author

It probably depends on how much diff you've written overall, but a few seconds seems to be more than enough from what I've seen.
Personally I intend to set this option to 30 seconds for my config

@github-actions github-actions bot locked and limited conversation to collaborators Jun 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Lines plugin not working correctly
2 participants