browser-wakatime icon indicating copy to clipboard operation
browser-wakatime copied to clipboard

Set project based on URL on GitHub, Waffle.io, Travis-CI, etc

Open rummik opened this issue 7 years ago • 5 comments

Sites like GitHub, BitBucket, Travis-CI, ~Waffle.io~, and CircleCI, can contain the project name in the URL. It would be nice to be able to use that info without exposing the full URL to the WakaTime API

rummik avatar Aug 05 '16 15:08 rummik

You can handle this via custom rules. It would be nice if the addon had some more powerful ways of determining what project things should go to.

Eeems avatar Dec 14 '16 21:12 Eeems

Custom rules require exposing full URLs to the API, which could be considered a major security risk if the URLs contain session or personal information

rummik avatar Dec 15 '16 02:12 rummik

We could add the ability to call custom handlers to WakaTimeCore.sendHeartbeat.

Check if custom handler exists for given domain. If one exists, let that custom handler create the heartbeat payload data. Otherwise, use the default project and other heartbeat payload data.

Once custom handlers are working we can start adding custom handlers for any cloud IDE or websites we use.

alanhamlett avatar May 28 '17 18:05 alanhamlett

There's a related conversation in #28. Until project detection from websites improves, custom rules are the only way to set projects for browsing activity.

alanhamlett avatar Apr 04 '18 02:04 alanhamlett

For Mac, we're building this now into the desktop app. If anyone has a url they want supported please common on https://github.com/wakatime/macos-wakatime/issues/227.

alanhamlett avatar Mar 18 '24 15:03 alanhamlett