[Wakatime]: Support customize API base URL#17118
Conversation
|
Thank you for your contribution! 🎉 🔔 @iammola you might want to have a look. You can use this guide to learn how to check out the Pull Request locally in order to test it. Due to our current reduced availability, the initial review may take up to 10-15 business days |
|
Did you remove |
|
@greptileai please also check this |
There was a problem hiding this comment.
PR Summary
This PR adds support for customizing the WakaTime API base URL, allowing users to connect to self-hosted instances or alternative API endpoints.
- Added a new global preference
apiBaseUrlinextensions/wakatime/package.jsonwith default value of "https://wakatime.com/api/v1" - Modified
extensions/wakatime/src/utils/api.tsto retrieve and use the custom API base URL from preferences - Implementation properly falls back to the default URL when no custom URL is provided
- The change maintains backward compatibility while adding flexibility for users with self-hosted WakaTime instances
💡 (3/5) Reply to the bot's comments like "Can you suggest a fix for this @greptileai?" or ask follow-up questions!
2 file(s) reviewed, 2 comment(s)
Edit PR Review Bot Settings | Greptile
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
Yes. Because the extension level already has that preference. The one I removed was at the command level. |
|
@iammola do you want to check this? |
|
I host a https://github.com/muety/wakapi on my homelab 🤩 |
pernielsentikaer
left a comment
There was a problem hiding this comment.
Hi 👋
Looks good to me, approved 🔥
|
Published to the Raycast Store: |
|
🎉 🎉 🎉 We've rewarded your Raycast account with some credits. You will soon be able to exchange them for some swag. |
Description
Screencast
Checklist
npm run buildand tested this distribution build in Raycastassetsfolder are used by the extension itselfREADMEare placed outside of themetadatafolder