Skip to content

fix(crashlytics): include x-goog-user-project header in generateAlertPolicy - #11382

Merged
tonybaroneee merged 1 commit into
mainfrom
fix-crashlytics-alert-policy-header
Oct 29, 2026
Merged

tonybaroneee merged 1 commit into
mainfrom
fix-crashlytics-alert-policy-header

Conversation

@tonybaroneee

Copy link
Copy Markdown
Contributor

Description

Passes "x-goog-user-project": projectId in generateAlertPolicy() so :generateAlertPolicy requests succeed when invoked with credentials that require an explicit quota project header instead of failing with 403 USER_PROJECT_DENIED.

Scenarios Tested

  • Unit tests in src/crashlytics/alerts.spec.ts (npx mocha src/crashlytics/alerts.spec.ts).

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the generateAlertPolicy function in src/crashlytics/alerts.ts to include the x-goog-user-project header set to the projectId in its API request. Correspondingly, the unit tests in src/crashlytics/alerts.spec.ts have been updated to match this header in the mocked requests. There are no review comments, and I have no feedback to provide.

@tonybaroneee
tonybaroneee enabled auto-merge (squash) October 29, 2026 00:47
@tonybaroneee
tonybaroneee disabled auto-merge October 29, 2026 13:07
@tonybaroneee
tonybaroneee merged commit e432e8b into main Oct 29, 2026
51 checks passed
@tonybaroneee
tonybaroneee deleted the fix-crashlytics-alert-policy-header branch October 29, 2026 13:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants