feature: Add Wakapi Support
Some checks are pending
PUBLISH_IMAGE / Publish 'waka-readme-stats' image (push) Waiting to run
CodeQL / Analyze (python) (push) Waiting to run
CODESTYLE / Run codestyle check (push) Waiting to run

This commit is contained in:
2024-11-01 22:26:19 -05:00
parent dbb6bd8a1d
commit 7890b5e547
4 changed files with 5 additions and 2 deletions

View File

@@ -123,8 +123,8 @@ async def init_download_manager(user_login: str):
"""
await DownloadManager.load_remote_resources(
linguist="https://cdn.jsdelivr.net/gh/github/linguist@master/lib/linguist/languages.yml",
waka_latest=f"https://wakatime.com/api/v1/users/current/stats/last_7_days?api_key={EM.WAKATIME_API_KEY}",
waka_all=f"https://wakatime.com/api/v1/users/current/all_time_since_today?api_key={EM.WAKATIME_API_KEY}",
waka_latest=f"https://{EM.WAKATIME_URL}/api/v1/users/current/stats/all_time?api_key={EM.WAKATIME_API_KEY}",
waka_all=f"https://{EM.WAKATIME_URL}/api/compat/wakatime/v1/users/current/all_time_since_today?api_key={EM.WAKATIME_API_KEY}",
github_stats=f"https://github-contributions.vercel.app/api/v1/{user_login}",
)

View File

@@ -15,6 +15,7 @@ class EnvironmentManager:
GH_TOKEN = environ["INPUT_GH_TOKEN"]
WAKATIME_API_KEY = environ["INPUT_WAKATIME_API_KEY"]
WAKATIME_URL = environ["INPUT_WAKATIME_URL"]
SECTION_NAME = getenv("INPUT_SECTION_NAME", "waka")
PULL_BRANCH_NAME = getenv("INPUT_PULL_BRANCH_NAME", "")