Add posthog test task
This commit is contained in:
parent
96e234192e
commit
5f03c92c47
1 changed files with 3 additions and 1 deletions
|
|
@ -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.")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue