Skip to content

feat: add changeset and operation to delete CRE workflow#54

Merged
karen-stepanyan merged 1 commit into
mainfrom
DF-24747
May 13, 2026
Merged

feat: add changeset and operation to delete CRE workflow#54
karen-stepanyan merged 1 commit into
mainfrom
DF-24747

Conversation

@karen-stepanyan
Copy link
Copy Markdown
Contributor

@karen-stepanyan karen-stepanyan commented May 13, 2026

This is pretty much the same workflow deploy but does not use binary or config options and executes CRE CLI delete command.
Tested locally and deleted a workflow on staging

https://smartcontract-it.atlassian.net/browse/DF-24747

@karen-stepanyan karen-stepanyan requested a review from a team as a code owner May 13, 2026 14:40
Copilot AI review requested due to automatic review settings May 13, 2026 14:40
@github-actions
Copy link
Copy Markdown

👋 karen-stepanyan, thanks for creating this pull request!

To help reviewers, please consider creating future PRs as drafts first. This allows you to self-review and make any final changes before notifying the team.

Once you're ready, you can mark it as "Ready for review" to request feedback. Thanks!

@karen-stepanyan karen-stepanyan changed the title add cs and operation to delete CRE workflow feat: add changeset and operation to delete CRE workflow May 13, 2026
Copy link
Copy Markdown
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

Adds a new CRE workflow deletion capability to the cld-changesets CRE tooling, mirroring the existing deploy flow but invoking the CRE CLI workflow delete command.

Changes:

  • Introduces CREWorkflowDeleteOp operation that generates workflow.yaml/context.yaml, resolves project.yaml, and runs cre workflow delete.
  • Adds CREWorkflowDeleteChangeset to wire the delete operation into the deployments framework environment/config loading.
  • Adds unit tests for both the operation and changeset (CLI args, target forwarding, exit error propagation, and on-chain env injection).

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
cre/operations/workflow_delete.go New operation + input/output types for invoking cre workflow delete.
cre/operations/workflow_delete_test.go Tests for delete operation CLI invocation, target forwarding, and exit error handling.
cre/changesets/workflow_delete.go New changeset that validates environment/input and runs the delete operation with loaded env config.
cre/changesets/workflow_delete_test.go Tests for changeset preconditions and Apply behavior (including on-chain env injection).

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

Comment on lines +42 to +50
// Validate trims fields and checks required workflow delete inputs.
func (in *CREWorkflowDeleteInput) Validate() error {
if in == nil {
return errors.New("cre workflow delete input is nil")
}
in.WorkflowName = strings.TrimSpace(in.WorkflowName)
in.DonFamily = strings.TrimSpace(in.DonFamily)
in.DeploymentRegistry = strings.TrimSpace(in.DeploymentRegistry)
if in.WorkflowName == "" {
@karen-stepanyan karen-stepanyan merged commit f0e341a into main May 13, 2026
17 of 20 checks passed
@karen-stepanyan karen-stepanyan deleted the DF-24747 branch May 13, 2026 15:08
ecPablo pushed a commit that referenced this pull request May 18, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.4.0](v0.3.0...v0.4.0)
(2026-05-18)


### Features

* add changeset and operation to delete CRE workflow
([#54](#54))
([f0e341a](f0e341a))
* add support for multiple api key to deploy workflow
([#55](#55))
([a68f156](a68f156))
* transfer native
([#56](#56))
([4368e49](4368e49))


### Bug Fixes

* use cache dir for sol programs loading
([#52](#52))
([b04f4d9](b04f4d9))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: app-token-issuer-ops-platform[bot] <275822481+app-token-issuer-ops-platform[bot]@users.noreply.github.com>
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