We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06e2661 commit a0c7b58Copy full SHA for a0c7b58
sources/manager_environment.py
@@ -16,8 +16,10 @@ class EnvironmentManager:
16
GH_TOKEN = environ["INPUT_GH_TOKEN"]
17
WAKATIME_API_KEY = environ["INPUT_WAKATIME_API_KEY"]
18
WAKATIME_API_URL = getenv("INPUT_WAKATIME_API_URL", "https://wakatime.com/api/")
19
- if not WAKATIME_API_URL.endswith("/"):
20
- WAKATIME_API_URL += "/"
+ if not WAKATIME_API_URL.rstrip("/").endswith("v1"):
+ WAKATIME_API_URL = WAKATIME_API_URL.rstrip("/") + "/v1/"
21
+ else:
22
+ WAKATIME_API_URL = WAKATIME_API_URL.rstrip("/") + "/"
23
24
SECTION_NAME = getenv("INPUT_SECTION_NAME", "waka")
25
PULL_BRANCH_NAME = getenv("INPUT_PULL_BRANCH_NAME", "")
0 commit comments