Skip to content

feat(autofix): Add github_app field to autofix PR analytics events#109383

Merged
JoshFerge merged 1 commit intomasterfrom
jferg/autofix-pr-github-app-analytics
Feb 25, 2026
Merged

feat(autofix): Add github_app field to autofix PR analytics events#109383
JoshFerge merged 1 commit intomasterfrom
jferg/autofix-pr-github-app-analytics

Conversation

@JoshFerge
Copy link
Copy Markdown
Member

Summary

  • Adds a github_app field ("seer" or "sentry") to the ai.autofix.pr.opened, ai.autofix.pr.closed, and ai.autofix.pr.merged analytics events
  • Determines the app by comparing the webhook's github_user["id"] against SEER_AUTOFIX_GITHUB_APP_USER_ID and SENTRY_GITHUB_APP_USER_ID settings
  • Adds a test case for PRs opened via the Sentry GitHub app

Test plan

  • Existing tests updated with github_app field
  • New test test_opened_sentry_app verifies Sentry app detection
  • All 7 tests pass

Track whether the GitHub app that opened/closed/merged an autofix PR
was the Seer app or the Sentry app. This helps distinguish which app
is being used for autofix PRs in analytics.
@JoshFerge JoshFerge marked this pull request as ready for review February 25, 2026 21:57
@JoshFerge JoshFerge requested a review from a team as a code owner February 25, 2026 21:57
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Feb 25, 2026
@JoshFerge JoshFerge enabled auto-merge (squash) February 25, 2026 22:02
@JoshFerge JoshFerge merged commit adaa245 into master Feb 25, 2026
80 checks passed
@JoshFerge JoshFerge deleted the jferg/autofix-pr-github-app-analytics branch February 25, 2026 22:19
@github-actions github-actions bot locked and limited conversation to collaborators Mar 13, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants