Add posthog test task
This commit is contained in:
parent
a257b864d5
commit
550d53caf7
1 changed files with 4 additions and 1 deletions
|
|
@ -1,4 +1,5 @@
|
||||||
# extract_and_push_github_data.py
|
# extract_and_push_github_data.py
|
||||||
|
import uuid
|
||||||
|
|
||||||
import requests
|
import requests
|
||||||
import os
|
import os
|
||||||
|
|
@ -53,9 +54,11 @@ def main():
|
||||||
|
|
||||||
print("Repository information: ", properties)
|
print("Repository information: ", properties)
|
||||||
|
|
||||||
|
distinct_id = str(uuid.uuid4())
|
||||||
|
|
||||||
# Send event to PostHog
|
# Send event to PostHog
|
||||||
result = posthog.capture(
|
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',
|
event='GitHub Repo Stats',
|
||||||
properties=properties
|
properties=properties
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue