Several improvements to build efficiency#800
Merged
Merged
Conversation
- Add .env.example and update README for local token config - Add ValidateGitHubToken target to check token validity/scope - Auto-set SKIP_CONTRIBUTORS if token missing/invalid - Allow Serve port configuration with auto-increment - Standardize plugin logging with Docfx.Common.Logger - Refactor GitHubApi to derive contributor stats from commits - Enhance contributor model with commit count and date - Refactor RepoStatsBuildStep and PageStatsBuildStep for clarity We ran into a rate limit recently and I dound a couple of inneficiencies basically. This PR should make the build faster and use less Github API calls. - Update build.schema.json for new params and targets - Improve error handling and code consistency throughout
Member
Author
|
@david-poindexter @bdukes does anything in here stick out to you guys? I ran a full local build which worked fine using a PAT and in CI it should work the same but with a Github actions token (in theory). No real way to really test it without merging it though... |
david-poindexter
approved these changes
May 6, 2026
david-poindexter
left a comment
Collaborator
There was a problem hiding this comment.
This looks good to me as well @valadas - thanks for the work on this! 🎉
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
We ran into a rate limit recently and I dound a couple of inneficiencies basically. This PR should make the build faster and use less Github API calls.