Skip to content

Conversation

@stevencl840
Copy link
Contributor

@stevencl840 stevencl840 commented Nov 3, 2025

Context 🌆

Ephemeral environments are temporary environments that developers can use to test changes. They are expected to come and go with the same cadence as a PR, created when the PR is opened and torn down when it is merged.

Users would like to be able to manually deploy their release to their ephemeral environment rather than having it deployed automatically when the release is created.

Details 🔍

This PR adds the ability to deprovision an ephemeral environment for a project to the Go API client. I have added a test to demonstrate it working,

[sc-124428]

@stevencl840 stevencl840 changed the title feat: Add Project ephemeral environment deprovisioning feat: Add project ephemeral environment deprovisioning Nov 3, 2025
@stevencl840 stevencl840 changed the title feat: Add project ephemeral environment deprovisioning feat: Add per project ephemeral environment deprovisioning Nov 3, 2025
@stevencl840 stevencl840 requested a review from Copilot November 3, 2025 03:39
@stevencl840 stevencl840 marked this pull request as ready for review November 3, 2025 03:39
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds functionality to deprovision ephemeral environments for projects in the Octopus Deploy Go SDK. The implementation includes a new API endpoint, service method, and corresponding end-to-end test.

Key Changes:

  • Added DeprovisionForProject service method to deprovision ephemeral environments
  • Introduced new data structures for deprovision commands and responses
  • Added comprehensive E2E test coverage for the deprovision functionality

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
pkg/environments/v2/route.go Added new route template for deprovisioning ephemeral environments
pkg/environments/v2/ephemeralenvironments/ephemeral_environment_service.go Implemented DeprovisionForProject function and supporting types for deprovisioning
test/e2e/ephemeral_environment_service_test.go Added E2E test and helper function to validate deprovision functionality

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@stevencl840 stevencl840 merged commit 162ecfd into main Nov 3, 2025
6 checks passed
@stevencl840 stevencl840 deleted the sjc/add-ee-deprovisioning-for-project branch November 3, 2025 05:52
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