From 550d53caf7bb865bfdc228394d8f3b4686971349 Mon Sep 17 00:00:00 2001 From: Vasilije <8619304+Vasilije1990@users.noreply.github.com> Date: Wed, 25 Sep 2024 18:45:22 +0200 Subject: [PATCH] Add posthog test task --- tools/push_to_posthog.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/push_to_posthog.py b/tools/push_to_posthog.py index 66355b729..0b9af1c94 100644 --- a/tools/push_to_posthog.py +++ b/tools/push_to_posthog.py @@ -1,4 +1,5 @@ # extract_and_push_github_data.py +import uuid import requests import os @@ -53,9 +54,11 @@ def main(): print("Repository information: ", properties) + distinct_id = str(uuid.uuid4()) + # Send event to PostHog result = posthog.capture( - distinct_id='github_repo', # You can customize this identifier + distinct_id=distinct_id, # You can customize this identifier event='GitHub Repo Stats', properties=properties )