Skip to content

chore: rename DeploymentEvent to LifecycleEvent to ensure we have consistent naming.#10795

Merged
ajperel merged 2 commits into
mainfrom
ajp/deploymentevent-to-lifecycleevent
Jul 13, 2026
Merged

chore: rename DeploymentEvent to LifecycleEvent to ensure we have consistent naming.#10795
ajperel merged 2 commits into
mainfrom
ajp/deploymentevent-to-lifecycleevent

Conversation

@ajperel

@ajperel ajperel commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Description

Renaming DeploymentEvent to LifecycleEvent to have consistent naming across hooks & events with new lifecycle features. This also improves the typing of lifecycleHooks in the Backend interface to guarantee the key is always a LifecycleEvent.

Scenarios Tested

  • npm test

@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 renames DeploymentEvent to LifecycleEvent and determineDeploymentEvent to determineLifecycleEvent across several files in the functions deployment pipeline to align with the concept of lifecycle hooks. The review feedback points out an opportunity to improve type safety in src/deploy/functions/prompts.ts by replacing an unsafe type assertion (hookName as LifecycleEvent) with an explicit check, adhering to the repository's TypeScript style guide.

Comment thread src/deploy/functions/prompts.ts
@ajperel ajperel force-pushed the ajp/deploymentevent-to-lifecycleevent branch from d944b76 to 54d8cff Compare July 13, 2026 21:22

@wandamora wandamora 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.

LGTM, and ran some manual tests in a firebase project to verify this is WAI.

@ajperel ajperel enabled auto-merge (squash) July 13, 2026 22:00
@ajperel ajperel merged commit c5ba39a into main Jul 13, 2026
51 of 53 checks passed
@ajperel ajperel deleted the ajp/deploymentevent-to-lifecycleevent branch July 13, 2026 22:10
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.

3 participants