Add unique CodeQL repo count to count command when --codeql flag is used#31
Merged
CallMeGreg merged 3 commits intomainfrom Mar 24, 2026
Merged
Conversation
Co-authored-by: CallMeGreg <110078080+CallMeGreg@users.noreply.github.com> Agent-Logs-Url: https://github.com/CallMeGreg/gh-language/sessions/2d0f4814-20ea-40fa-95d5-0e858ecce5ad
Copilot created this pull request from a session on behalf of
CallMeGreg
March 24, 2026 12:16
View session
CallMeGreg
approved these changes
Mar 24, 2026
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.
Summary
When using the
--codeqlflag with thecountcommand, the output now additionally includes the number of unique repositories that contain at least one CodeQL-supported language. The existing per-language repo counts continue to be displayed across all three subcommands (count,trend,data).Changes
cmd/common.goGetCodeQLLanguages()helper function to return the set of CodeQL-supported languages, avoiding duplication of the hardcoded language mapIsCodeQLLanguage()to use the new helperHasCodeQLLanguage()function that checks if a repository's languages contain at least one CodeQL-supported languagecmd/count.gocodeqlReposcounter that tracks the number of unique repositories with at least one CodeQL-supported language during enumeration--codeqlis setREADME.md--codeqlwith thecountcommandSecurity Summary
No security vulnerabilities were introduced or discovered. CodeQL analysis returned 0 alerts.
Release Type