[build-tools] Add eas/posthog_capture_event workflow function#3934
Draft
gwdp wants to merge 1 commit into
Draft
Conversation
cd23f3a to
5ce0514
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3934 +/- ##
==========================================
+ Coverage 59.18% 59.33% +0.15%
==========================================
Files 935 937 +2
Lines 41075 41144 +69
Branches 8648 8671 +23
==========================================
+ Hits 24306 24407 +101
+ Misses 16674 16643 -31
+ Partials 95 94 -1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
c620ee0 to
c08213f
Compare
c08213f to
0d8006c
Compare
|
✅ Thank you for adding the changelog entry! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
First PostHog workflow step: send an event from a workflow (e.g. mark a deploy).
How
add
eas/posthog_capture_eventfunction; Uses the env varsintegrations:posthog:connectalready sets, orapi_key/hostinputs.No
distinct_id= anonymous event, so CI runs don't create person profiles. Failures fail the step; setignore_error: trueto log a warning and continue instead (same asupload_artifact).Test Plan
CI passes. Ran this workflow against a local — all three jobs green, both events visible in the project's PostHog activity (anonymous one under the
eas-workflowperson), and the ignored failure logs a warning without failing the step:Workflow succeeds
Data appears on my posthog organization