feat: delete-deployments reusable action#1423
Merged
Conversation
chainchad
previously approved these changes
Feb 23, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Adds an official delete-deployments reusable GitHub Action to consolidate duplicated implementations and modernize dependencies/structure in this repo’s TypeScript action patterns.
Changes:
- Introduces
actions/delete-deployments(action.yml, TS sources, Nx project config, scripts, docs, changeset). - Updates workspace dependencies/lockfile to support new action + Octokit/@actions package upgrades.
- Adds a root
clean:depshelper script.
Reviewed changes
Copilot reviewed 14 out of 18 changed files in this pull request and generated 10 comments.
Show a summary per file
| File | Description |
|---|---|
| pnpm-lock.yaml | Adds the new action workspace importer and updates/introduces required @actions/@octokit deps and related lock entries. |
| package.json | Adds a clean:deps script for removing node_modules across the repo. |
| apps/go-mod-validator/dist/index.js | Regenerated bundle reflecting updated dependency graph (Octokit core/throttling). |
| actions/signed-commits/dist/index.js | Regenerated bundle reflecting updated dependency graph (Octokit core/throttling). |
| actions/delete-deployments/action.yml | Defines the new reusable action interface and runtime entrypoint. |
| actions/delete-deployments/README.md | Documents inputs and usage example for the new action. |
| actions/delete-deployments/package.json | Declares dependencies/devDependencies for the new action package. |
| actions/delete-deployments/project.json | Adds Nx build/check-types targets for the new action. |
| actions/delete-deployments/tsconfig.json | TypeScript config consistent with other repo actions. |
| actions/delete-deployments/tsconfig.spec.json | Test TS config (currently no tests wired up). |
| actions/delete-deployments/src/index.ts | Action entrypoint calling run(). |
| actions/delete-deployments/src/run.ts | Orchestrates input/context parsing, deployment listing, and deletion. |
| actions/delete-deployments/src/run-inputs.ts | Implements getInputs / getInvokeContext and input parsing helpers. |
| actions/delete-deployments/src/github.ts | Wraps Octokit initialization and GitHub REST calls for deployments. |
| actions/delete-deployments/scripts/test.sh | Local manual test harness for the action. |
| actions/delete-deployments/scripts/payload.json | Sample event payload for local testing. |
| .changeset/weak-cooks-drive.md | Adds changeset entry for initial delete-deployments release. |
Files not reviewed (1)
- pnpm-lock.yaml: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
chainchad
approved these changes
Feb 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This creates an official
delete-deploymentsreusable action because:Changes
getInvokeContext/getInputssigned-commitsandchanged-modules-gonode_modules, and reinstall everything to actually see changes in thedist.Testing
Tested locally with
scripts/test.shDX-2999