Generate daily updated customizable visualizations of user and repository statistics from the GitHub GraphQL and REST APIs using GitHub Actions and Secrets
Generate daily updated visualizations of user and repository statistics from the GitHub GraphQL and REST APIs using GitHub Actions and Secrets. Customizable visualizations support dark and light mode and can adapt to device sizes.
A modification of
jstrieb/github-statsvisualizations with new and improved statistics and more options!
Note: my ‘Avg contributions’ stats is customized to only consider collaborative university project repos
| GitHub Statistics Term | Description |
|---|---|
| All-time GitHub contributions | Count of all contributions (as defined by GitHub) to any and all repositories any time for a given user |
| Lines of code changes* | Sum of all code additions and deletions to all repositories contributed to for a user, measured by lines |
| Avg contributions [weighted]* | Average code changes per collaborative repository for a user [weighted relative to contributor count] |
| Repos contributed [% collab]* | Count of all repositories contributed to by a user [including percent in collaboration with others] |
| Repo views (as of YYYY-MM-DD)* | Sum of views to all repositories since created, if owned, or contributed to (from a given date) |
| Repo collaborators* | Sum of collaborator and contributor counts for all repositories contributed to or owned for a user |
| Repo forks* | Sum of all-time fork counts for all repositories contributed to or owned for a user |
| Repo stars* | Sum of all-time star counts for all repositories contributed to or owned for a user |
| # [+#] Implemented Languages* | Listed [and hidden] percentages of implemented languages relative to sizes of files contributed to |
* Customisable as instructed in the :closed_lock_with_key: Options section below
action_branch with statistics, but this can be overwrittenrepo for ‘Full control of private repositories’read:user to ‘Read only ALL user profile data’ACCESS_TOKENThis is required if the
actions_branchbranch is not created, as it is created when run
This requires the
actions_branchbranch to first be created with generated statistics visualizations
Branch: main from the ‘Use workflow from’ dropdown listgenerated_images directory in the actions_branch branch with the following image links:
<username> with your GitHub username):
<username> with your GitHub username):
EXCLUDEDFor excluding repositories from being included entirely in the generated statistic visualizations.
Instructions:
[owner/repo],[owner/repo],...,[owner/repo]jstrieb/github-stats,rahul-jha98/github-stats-transparent,idiotWu/statsONLY_INCLUDEDFor ONLY including repositories in the generated statistic visualizations
Instructions:
[owner/repo],[owner/repo],...,[owner/repo]R055A/GitStats,R055A/R055AEXCLUDED_LANGSFor excluding undesired languages from being included in the generated statistic visualizations
Instructions:
[language],[language],...,[language]HTML,Jupyter Notebook,Makefile,DockerfileINCLUDE_FORKED_REPOSBoolean option for including forked repositories in the generated statistic visualizations. These could repeat statistical calculations
false by defaultInstructions:
<boolean>trueEXCLUDE_CONTRIB_REPOSBoolean option for excluding non-owned repositories contributed to in the generated statistic visualizations
false by defaultInstructions:
<boolean>trueEXCLUDE_ARCHIVE_REPOSBoolean option for excluding archived repositories in the generated statistic visualizations
false by defaultInstructions:
<boolean>trueEXCLUDE_PRIVATE_REPOSBoolean option for excluding private repositories in the generated statistic visualizations
false by defaultInstructions:
<boolean>trueEXCLUDE_PUBLIC_REPOSBoolean option for excluding public repositories in the generated statistic visualizations
false by defaultInstructions:
<boolean>trueMORE_REPOSFor including repositories that are otherwise not included in generated statistic visualizations when scraping by username
Instructions:
[owner/repo],[owner/repo],...,[owner/repo]R055A/GitStats,R055A/R055AMORE_COLLABSFor adding a constant value to the generated repository collaborators statistic
Instructions:
<int>4ONLY_INCLUDED_COLLAB_REPOSFor ONLY including collaborative repositories in the generated average contribution statistics calculations
Instructions:
[owner/repo],[owner/repo],...,[owner/repo]R055A/UniversityProject-A,R055A/UniversityProject-BEXCLUDED_COLLAB_REPOSFor excluding collaborative repositories from being included in the average contribution statistics calculations
Instructions:
[owner/repo],[owner/repo],...,[owner/repo]tera_open_source/bit_typo_fix,peer_repo/missing_or_no_git_co_author_credit,dude_collab/email_not_reg_on_github,dog_ate/my_repo,mars/attacksMORE_COLLAB_REPOSFor including collaborative repositories that are otherwise not included in the average contribution statistics calculations
Instructions:
[owner/repo],[owner/repo],...,[owner/repo]imported_ghosted/large_A+_collab_project,slave_trade/larger_A++_projectSTORE_REPO_VIEWSBoolean for storing generated repository view statistic visualization data beyond the 14 day-limit GitHub API allows
true by defaultInstructions:
<boolean>falseREPO_VIEWSFor adding a constant value to the generated repository view statistics
LAST_VIEWED)LAST_VIEWED and FIRST_VIEWED SecretsInstructions:
<int>5000LAST_VIEWEDFor updating the date the generated repository view statistics data is added to storage from
REPO_VIEWS)REPO_VIEWS and FIRST_VIEWED SecretsInstructions:
YYYY-MM-DD2020-10-01FIRST_VIEWEDFor updating the ‘as of’ date the generated repository view statistics data is stored from
REPO_VIEWS and LAST_VIEWED SecretsInstructions:
YYYY-MM-DD2021-03-31There are a few things you can do to support the project:
jstrieb/github-stats and 🔭 follow jstrieb for more)