Skip to content

feat: delete-deployments reusable action#1423

Merged
erikburt merged 7 commits intomainfrom
dx-2999/delete-deployments
Feb 24, 2026
Merged

feat: delete-deployments reusable action#1423
erikburt merged 7 commits intomainfrom
dx-2999/delete-deployments

Conversation

@erikburt
Copy link
Contributor

@erikburt erikburt commented Feb 23, 2026

This creates an official delete-deployments reusable action because:

  1. There's a few copies: https://github.com/search?q=org%3Asmartcontractkit+%22.github%2Factions%2Fdelete-deployments%22+path%3A**%2Faction.y*ml&type=code
  2. We need to upgrade the deps due to SOC2, but can't easily: [SOC2] Bump delete-deployments deps. chainlink#21269

Changes

  • Rewrote general logic into the regular paradigms for typecript actions in this repository
    • Mainly getInvokeContext / getInputs
  • Moved github API calls to their own repository
  • I had to rebuild signed-commits and changed-modules-go

Testing

Tested locally with scripts/test.sh


DX-2999

@erikburt erikburt self-assigned this Feb 23, 2026
@erikburt erikburt marked this pull request as ready for review February 23, 2026 21:09
@erikburt erikburt requested a review from a team as a code owner February 23, 2026 21:09
chainchad
chainchad previously approved these changes Feb 23, 2026
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

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:deps helper 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.

@erikburt erikburt merged commit 87ab322 into main Feb 24, 2026
17 checks passed
@erikburt erikburt deleted the dx-2999/delete-deployments branch February 24, 2026 19:53
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