From 5f03c92c47e711eb2646c6020edbc57cff05f15d Mon Sep 17 00:00:00 2001 From: Vasilije <8619304+Vasilije1990@users.noreply.github.com> Date: Wed, 25 Sep 2024 18:35:12 +0200 Subject: [PATCH] Add posthog test task --- tools/push_to_posthog.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/push_to_posthog.py b/tools/push_to_posthog.py index 8eb9cb693..59e61f550 100644 --- a/tools/push_to_posthog.py +++ b/tools/push_to_posthog.py @@ -54,12 +54,14 @@ def main(): print("Repository information: ", properties) # Send event to PostHog - posthog.capture( + result = posthog.capture( distinct_id='github_repo', # You can customize this identifier event='GitHub Repo Stats', properties=properties ) + print("PostHog response: ", result) + print("Data sent to PostHog successfully.") else: print("Failed to retrieve repository information.")