CL-1753 | + Anuja | + venky | add rollback command for previous deployments with GraphQL integration#143
CL-1753 | + Anuja | + venky | add rollback command for previous deployments with GraphQL integration#143AryanBansal-launch wants to merge 3 commits intodevelopmentfrom
Conversation
… deployments with GraphQL integration Co-authored-by: Venkatesh <[email protected]> Co-authored-by: anujachordiya-contentstack <[email protected]>
🔒 Security Scan Results
⏱️ SLA Breach Summary
ℹ️ Vulnerabilities Without Available Fixes (Informational Only)The following vulnerabilities were detected but do not have fixes available (no upgrade or patch). These are excluded from failure thresholds:
✅ BUILD PASSED - All security checks passed |
There was a problem hiding this comment.
Pull request overview
Adds a new launch:rollback CLI command that performs an “instant rollback” to a previously successful deployment, backed by new GraphQL query fields and a rollback mutation.
Changes:
- Extends
environmentsQueryto fetch rollback-related deployment metadata (status/branch/hash/eligibility). - Adds
rollbackDeploymentGraphQL mutation document and exports it. - Introduces a new
src/commands/launch/rollback.tscommand implementing environment resolution, eligible deployment selection, review/confirm, and rollback execution.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 5 comments.
| File | Description |
|---|---|
| src/graphql/queries.ts | Adds additional deployment fields needed to determine rollback eligibility and display source info. |
| src/graphql/mutation.ts | Adds and exports the rollbackDeploymentMutation document. |
| src/commands/launch/rollback.ts | New CLI command implementing interactive/non-interactive rollback flow via GraphQL. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
… improved error handling
6023ff7
🔒 Security Scan Results
⏱️ SLA Breach Summary
ℹ️ Vulnerabilities Without Available Fixes (Informational Only)The following vulnerabilities were detected but do not have fixes available (no upgrade or patch). These are excluded from failure thresholds:
✅ BUILD PASSED - All security checks passed |
… resolution logic
🔒 Security Scan Results
⏱️ SLA Breach Summary
ℹ️ Vulnerabilities Without Available Fixes (Informational Only)The following vulnerabilities were detected but do not have fixes available (no upgrade or patch). These are excluded from failure thresholds:
✅ BUILD PASSED - All security checks passed |
Harshi-Shah-CS
left a comment
There was a problem hiding this comment.
Rollback only works when there’s at least one archived deployment available, right?
No description provided.