feat(crashlytics): add optional email alerting step to web onboarding - #11182
Open
tonybaroneee wants to merge 1 commit into
Open
tonybaroneee wants to merge 1 commit into
tonybaroneee wants to merge 1 commit into
Conversation
tonybaroneee
force-pushed
the
feat/crashlytics-web-onboarding-alerts
branch
from
September 28, 2026 21:09
2d65e67 to
9e16548
Compare
tonybaroneee
force-pushed
the
feat/crashlytics-web-onboarding-alerts
branch
from
September 29, 2026 00:21
1a6d1c0 to
e8dddc9
Compare
tonybaroneee
force-pushed
the
feat/crashlytics-web-onboarding-alerts
branch
from
September 29, 2026 00:45
79a84e6 to
9c6d7c9
Compare
tonybaroneee
enabled auto-merge (squash)
September 29, 2026 13:50
This branch has not been deployed
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.
Description
Adds an optional interactive step to
firebase crashlytics:onboard:web(gated behind thecrashlyticsWebAlertsexperiment) that allows users to configure Crashlytics email alerts for their Web app during onboarding:src/crashlytics/alerts.ts,src/gcp/cloudmonitoring.ts):projects.apps.generateAlertPolicyAPI to provision Cloud Monitoring alert policies for selected alert types (ALERT_TYPE_NEW_ISSUE,ALERT_TYPE_REGRESSED_ISSUE).is_firebase_channel=true) for the authenticated user's email and attaches it to the generated alert policies.src/crashlytics/onboarding.ts):crashlyticsWebAlertsexperiment is enabled and the CLI is running interactively, prompts the user to select which email alerts to enable (New issues and/or Regressed issues, both checked by default).Example Output
Scenarios Tested
src/crashlytics/alerts.spec.ts: Generating alert policies, reusing existing vs. creating new Firebase email notification channels, deduplicating channels on policies, and enabling multiple alert types in parallel.src/crashlytics/onboarding.spec.ts: Interactive alert selection, deselecting all alerts, skipping whencrashlyticsWebAlertsis disabled or in--non-interactivemode, resolving email fromoptions.user.emailvs.requireAuth, and graceful warning fallback on API errors.src/gcp/cloudmonitoring.spec.ts: Listing/creating notification channels and getting/updating alert policies via Cloud Monitoring v3 API.crashlyticsWebAlertsexperiment (firebase experiments:enable crashlyticsWebAlerts) and ranfirebase crashlytics:onboard:webagainst a test Firebase project to verify notification channel creation and alert policy attachment in Cloud Monitoring.