GitHub Action
waka-readme-stats
- Add a comment to your the markdown file you want to update (presumably
README.md
):
<!--START_SECTION:waka-->
<!--END_SECTION:waka-->
- Add your Wakatime API key as a secret and name it
WAKATIME_API_KEY
. - Add a GitHub personal access token with
repo
anduser
scopes as a secret and name itGH_TOKEN
. - 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 }}
- 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.
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"
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.
SHOW_PROFILE_VIEWS
can be set to False
to hide the 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