Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 26, 2026

During gh aw init and gh aw upgrade, legacy agent files are cleaned up from .github/agents/. The file create-shared-agentic-workflow.md (without .agent extension) was missing from this cleanup list.

Changes

  • Cleanup logic (pkg/cli/copilot-agents.go): Added create-shared-agentic-workflow.md to the deleteOldAgentFiles deletion map under the agents subdirectory
  • Test coverage (pkg/cli/copilot_agents_test.go): Updated test cases to verify the file is properly deleted during cleanup

The file joins other legacy files like create-agentic-workflow.md and setup-agentic-workflows.md that are removed during repository upgrades to prevent conflicts with the current file structure.

Original prompt

Add ".github/agents/create-shared-agentic-workflow.md" to the list of files to delete as part of the upgrade/init command (in codemodes)

Custom agent used: agentic-workflows
GitHub Agentic Workflows (gh-aw) - Create, debug, and upgrade AI-powered workflows with intelligent prompt routing


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

- Added ".github/agents/create-shared-agentic-workflow.md" to the list of files to delete in deleteOldAgentFiles function
- Updated test cases to verify deletion of the new file
- All tests pass

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Add file to delete list in upgrade/init command Add create-shared-agentic-workflow.md to upgrade cleanup list Jan 26, 2026
Copilot AI requested a review from pelikhan January 26, 2026 01:43
@pelikhan pelikhan marked this pull request as ready for review January 26, 2026 01:46
@pelikhan pelikhan merged commit 719839b into main Jan 26, 2026
@pelikhan pelikhan deleted the copilot/modify-delete-files-list branch January 26, 2026 01:46
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