Commit 6839918
committed
fix(autofix): Skip code-changes-completed event when PR is created
When webhook_action_type is PR_CREATED, the on_completion_hook was firing
AiAutofixCodeChangesCompletedEvent (from STEP_CONFIGS) alongside
AiAutofixPrCreatedCompletedEvent. This inflated code-changes-completed
analytics counts because the hook also fires after PR creation via
push_changes' on_completion_hook payload.
Gate the STEP_CONFIGS completed_event recording on
webhook_action_type != PR_CREATED so only the PR-created event fires
in that path.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Agent transcript: https://claudescope.sentry.dev/share/pZN9EjD2NnKcBxKbvdo8ab42Yrd8eKMf_wauRcylSb01 parent 0a63227 commit 6839918
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
238 | 238 | | |
239 | 239 | | |
240 | 240 | | |
241 | | - | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
242 | 246 | | |
243 | 247 | | |
244 | 248 | | |
| |||
0 commit comments