Add posthog test task

This commit is contained in:
Vasilije 2024-09-25 18:35:12 +02:00
parent 96e234192e
commit 5f03c92c47

View file

@ -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.")