Skip to content

Remove obsolete action references and clean up actions build system#8055

Merged
pelikhan merged 5 commits into
mainfrom
copilot/remove-setup-safe-inputs-outputs
Dec 29, 2025
Merged

Remove obsolete action references and clean up actions build system#8055
pelikhan merged 5 commits into
mainfrom
copilot/remove-setup-safe-inputs-outputs

Conversation

Copilot AI commented Dec 29, 2025

Copy link
Copy Markdown
Contributor

Cleanup obsolete action references

The actions/setup-safe-inputs and actions/setup-safe-outputs directories were consolidated into actions/setup, but references remained throughout the codebase. Additionally, documentation incorrectly referenced non-existent actions (noop, minimize_comment, close_issue, close_pull_request, close_discussion). This PR cleans up all obsolete references to reflect that only actions/setup exists.

Changes

pkg/cli/actions_build_command.go

  • Removed buildSetupSafeOutputsAction() function and dependency mappings for obsolete actions
  • Simplified ActionsCleanCommand() and buildAction() by removing special-case handling
  • Removed dependency mappings for non-existent actions
  • Simplified getActionDependencies() to only handle the setup action

Documentation updates

  • actions/README.md: Removed obsolete action sections, updated examples to use ./actions/setup
  • specs/actions.md:
    • Updated architecture diagrams to show only setup action
    • Removed directory layout entries for non-existent actions
    • Updated dependency mapping example to match actual code
    • Updated summary section to reflect that only setup action exists
  • .github/instructions/developer.instructions.md: Updated directory structure to show only the setup action

Cleanup

  • .gitignore: Removed actions/setup-safe-outputs/js/ entry

Net: -138 lines, simplified build system to accurately reflect actual action structure with no functional changes.

Original prompt

Delete actions/setup-safe-inputs, actions/setup-safe-outputs actions. They are not needed anymore.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 2 commits December 29, 2025 10:13
…s actions

- Remove dependency mappings from getActionDependencies()
- Remove buildSetupSafeOutputsAction() function
- Remove special handling in buildAction()
- Remove special cleaning logic in ActionsCleanCommand()
- Update actions/README.md
- Update specs/actions.md with current architecture
- All tests passing

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
- Remove .gitignore entry for actions/setup-safe-outputs/js/
- Update developer instructions with current action structure

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Remove actions/setup-safe-inputs and actions/setup-safe-outputs Remove obsolete setup-safe-inputs and setup-safe-outputs action references Dec 29, 2025
Copilot AI requested a review from pelikhan December 29, 2025 10:18
│ ├── setup.sh
│ ├── js/
│ └── sh/
├── noop/

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@copilot this is completely outdated

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixed in f3b349f. Updated to show only the setup action that actually exists.

Comment thread pkg/cli/actions_build_command.go Outdated
@@ -376,25 +322,6 @@ func getActionDependencies(actionName string) []string {

// Static dependencies for other actions
dependencyMap := map[string][]string{

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@copilot only a single action (actions/setup) is used. Clean out the rest.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixed in f3b349f. Removed dependency mappings for non-existent actions (noop, minimize_comment, close_issue, close_pull_request, close_discussion).

Only actions/setup exists, remove references to noop, minimize_comment, close_issue, close_pull_request, and close_discussion from dependency mapping and developer instructions

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title Remove obsolete setup-safe-inputs and setup-safe-outputs action references Remove obsolete action references and clean up actions build system Dec 29, 2025
Copilot AI requested a review from pelikhan December 29, 2025 10:29
Comment thread specs/actions.md Outdated
Comment on lines 154 to 183
│ ├── noop/ # Noop safe output action
│ │ ├── action.yml # Action metadata
│ │ ├── index.js # Bundled output (committed)
│ │ ├── src/ # Source files
│ │ │ └── index.js # Source that references FILES constant
│ │ └── README.md # Action-specific docs
│ ├── minimize_comment/ # Minimize comment action
│ │ ├── action.yml # Action metadata
│ │ ├── index.js # Bundled output (committed)
│ │ ├── src/ # Source files
│ │ │ └── index.js # Source that references FILES constant
│ │ └── README.md # Action-specific docs
│ ├── close_issue/ # Close issue action
│ │ ├── action.yml # Action metadata
│ │ ├── index.js # Bundled output (committed)
│ │ ├── src/ # Source files
│ │ │ └── index.js # Source that references FILES constant
│ │ └── README.md # Action-specific docs
│ ├── close_pull_request/ # Close pull request action
│ │ ├── action.yml # Action metadata
│ │ ├── index.js # Bundled output (committed)
│ │ ├── src/ # Source files
│ │ │ └── index.js # Source that references FILES constant
│ │ └── README.md # Action-specific docs
│ ├── close_discussion/ # Close discussion action
│ │ ├── action.yml # Action metadata
│ │ ├── index.js # Bundled output (committed)
│ │ ├── src/ # Source files
│ │ │ └── index.js # Source that references FILES constant
│ │ └── README.md # Action-specific docs

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@copilot those actions do not exist

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixed in ce4684f. Removed the directory layout entries for non-existent actions from the Repository Layout section.

Comment thread specs/actions.md Outdated
Comment on lines 350 to 358
"noop": {
"load_agent_output.cjs",
},
"minimize_comment": {
"load_agent_output.cjs",
},
"close_issue": {
"close_entity_helpers.cjs",
},

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@copilot those actions are not needed only actions/setup is used

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixed in ce4684f. Updated the dependency mapping example code to match the actual implementation that only handles the setup action.

- Remove directory layout entries for noop, minimize_comment, close_issue, close_pull_request, close_discussion
- Update dependency mapping example to match actual code
- Update summary section to reflect only setup action exists

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI requested a review from pelikhan December 29, 2025 10:41
@pelikhan pelikhan marked this pull request as ready for review December 29, 2025 10:44
@pelikhan pelikhan merged commit eb4c2d5 into main Dec 29, 2025
44 of 46 checks passed
@pelikhan pelikhan deleted the copilot/remove-setup-safe-inputs-outputs branch December 29, 2025 10:44
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