Skip to content
activity

GitHub Action

waka-readme-stats

v5 Latest version

waka-readme-stats

activity

waka-readme-stats

Add coding stats from waka-time to your README

Installation

Copy and paste the following snippet into your .yml file.

              

- name: waka-readme-stats

uses: miermontoto/waka-readme-stats@v5

Learn more about this action in miermontoto/waka-readme-stats

Choose a version

Customized waka-readme-stats

Prep Work

  1. Add a comment to your the markdown file you want to update (presumably README.md):
<!--START_SECTION:waka-->
<!--END_SECTION:waka-->
  1. Add your Wakatime API key as a secret and name it WAKATIME_API_KEY.
  2. Add a GitHub personal access token with repo and user scopes as a secret and name it GH_TOKEN.
  3. Copy the sample workflow file to .github/workflows/ in the desired repository.
name: Waka Readme

on:
  schedule:
    - cron: '15 */12 * * *'
  workflow_dispatch:
  
jobs:
  update-readme:
    name: Update Readme with Metrics
    runs-on: ubuntu-latest
    steps:
      - uses: miermontoto/waka-readme-stats@master
        with:
          WAKATIME_API_KEY: ${{ secrets.WAKATIME_API_KEY }}
          GH_TOKEN: ${{ secrets.GH_TOKEN }}
  1. You can enable and disable feature flags based on requirements.

Your markdown file should now update at 00:15 and 12:15 UTC every day. You can change this by editing the crontab timing in the workflow file. Also, you can manually trigger an update in the 'Actions' tab.

Customization

If you want to change what info is displayed, you can add multiple FLAGS in your workflow file. By default all flags are enabled.

- uses: miermontoto/waka-readme-stats@master
        with:
          WAKATIME_API_KEY: ${{ secrets.WAKATIME_API_KEY }}
          GH_TOKEN: ${{ secrets.GH_TOKEN }}
          SHOW_OS: "False"
          SHOW_PROJECTS: "False"

Flags Available


LOCALE This flag can be used to show stats in your language. The default is english. Uses Locale Short Hand to be passed.

COMMIT_BY_ME can be set to True to commit the code using your username and email.

COMMIT_MESSAGE can be to set message commit, the default is "Updated with Dev Metrics".

SHOW_UPDATED_DATE can be set to True to show updated date in end of paragraph.

SHOW_LINES_OF_CODE can be set to True to show the lines of code writen till date.

Lines of code

SHOW_PROFILE_VIEWS can be set to False to hide the profile views.

Profile Views

SHOW_COMMIT can be set to False to hide the graph showing at what time of the day you commit.

I'm an early 🐀

🌞 Morning    95 commits     β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘   30.55% 
πŸŒ† Daytime    78 commits     β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘   25.08% 
πŸŒƒ Evening    112 commits    β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘   36.01% 
πŸŒ™ Night      26 commits     β–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘   8.36%

SHOW_DAYS_OF_WEEK can be set to False to hide the graph showing on what days of the week you commit.

πŸ“… I'm Most Productive on Sundays

Monday       50 commits     β–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘   13.19% 
Tuesday      85 commits     β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘   22.43% 
Wednesday    56 commits     β–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘   14.78% 
Thursday     44 commits     β–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘   11.61% 
Friday       28 commits     β–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘   7.39% 
Saturday     30 commits     β–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘   7.92% 
Sunday       86 commits     β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘   22.69%

SHOW_LANGUAGE can be set to False to hide the graph showing what languages your commits are in.

πŸ’¬ Languages:
JavaScript               5 hrs 26 mins       β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘   61.97%
PHP                      1 hr 35 mins        β–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘   18.07%
Markdown                 1 hr 9 mins         β–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘   13.3%
Python                   22 mins             β–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘   4.32%
XML                      8 mins              β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘   1.62%

SHOW_OS can be set to False to hide the graph showing the OS you commit from.

πŸ’» Operating systems:
Windows                  8 hrs 46 mins       β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ   100.0%

SHOW_PROJECTS can be set to False to hide the graph showing what repositories you commit to.

πŸ“š Repositories:
ctx_connector            4 hrs 3 mins        β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘   46.33%
NetSuite-Connector       1 hr 31 mins        β–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘   17.29%
mango-web-master         1 hr 12 mins        β–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘   13.77%
cable                    54 mins             β–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘   10.41%
denAPI                   40 mins             β–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘   7.66%

SHOW_TIMEZONE can be set to False to hide the time zone you commit from.

⌚︎ Timezone: Asia/Calcutta

SHOW_EDITORS can be set to False to hide the list of code-editors used.

πŸ“ Editors:
WebStorm                 6 hrs 47 mins       β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘   77.43%
PhpStorm                 1 hr 35 mins        β–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘   18.07%
PyCharm                  23 mins             β–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘   4.49%

SHOW_LANGUAGE_PER_REPO can be set to False to hide the number of repositories per language.

I mostly code in Vue

Vue          8 repos        β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘   25.0% 
Java         6 repos        β–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘   18.75% 
JavaScript   6 repos        β–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘   18.75% 
PHP          3 repos        β–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘   9.38% 
Python       2 repos        β–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘   6.25% 
Dart         2 repos        β–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘   6.25% 
CSS          2 repos        β–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘   6.25%

SHOW_SHORT_INFO can be set to False to hide a general summary of your github profile.

The following section requires personal access token with user permission otherwise data shown will be incorrect.

🐱 My GitHub Data

πŸ† 433 Contributions in year 2020

πŸ“¦ Used 292.3 kB in GitHub's Storage

πŸ’Ό Opted to Hire

πŸ“œ 25 Public Repository

πŸ”‘ 15 Owned Private Repository

SHOW_LOC_CHART can be set to False to hide the chart showing the lines of code written in different quarters.

IGNORED_REPOS can be set to any string, containing valid repositories names, to ignore some repos you don’t want to be counted

This is a fork of anmol098's waka-readme-stats.