viest / waka-box-go

๐Ÿ“Š Update a pinned gist to contain your weekly WakaTime stats. This is a Golang implementation, see the original version https://github.com/matchai/waka-box

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

waka-box-go

๐Ÿ“Š Update a pinned gist to contain your weekly WakaTime stats.

A Golang implementation, see the original version waka-box

Update gist with WakaTime stats


English | ็ฎ€ไฝ“ไธญๆ–‡

๐Ÿ“Œโœจ For more pinned-gist projects like this one, check out: https://github.com/matchai/awesome-pinned-gists

๐Ÿ’ป Setup

๐ŸŽ’ Prep work

  1. Create a new public GitHub Gist (https://gist.github.com/)
  2. Create a token with the gist scope and copy it. (https://github.com/settings/tokens/new)
  3. Create a WakaTime account (https://wakatime.com/signup)
  4. In your WakaTime profile settings (https://wakatime.com/settings/profile) ensure Display coding activity publicly and Display languages, editors, operating systems publicly are checked.
  5. In your account settings, copy the existing WakaTime API Key (https://wakatime.com/settings/api-key)

๐Ÿš€ Project setup

  1. Fork this repo

  2. Edit the environment variable in .github/workflows/schedule.yml:

    • GIST_ID: The ID portion from your gist url: https://gist.github.com/YouEclipse/9bc7025496e478f439b9cd43eba989a4.
  3. Go to the repo Settings > Secrets

  4. Add the following environment variables:

    • GH_TOKEN: The GitHub token generated above.
    • WAKATIME_API_KEY: The API key for your WakaTime account.

๐Ÿ•ต๏ธ How it works

  • Get stats from WakaTime API
  • Update Gist with Github API
  • Use Github Actions for updating Gist

๐Ÿ“„ License

This project is licensed under Apache-2.0

About

๐Ÿ“Š Update a pinned gist to contain your weekly WakaTime stats. This is a Golang implementation, see the original version https://github.com/matchai/waka-box

License:Apache License 2.0


Languages

Language:Go 100.0%