Skip to content

Add codemod to delete dangling upgrade-agentic-workflow.md file#11108

Merged
pelikhan merged 4 commits intomainfrom
copilot/remove-upgrade-agentic-workflow-file
Jan 21, 2026
Merged

Add codemod to delete dangling upgrade-agentic-workflow.md file#11108
pelikhan merged 4 commits intomainfrom
copilot/remove-upgrade-agentic-workflow-file

Conversation

Copy link
Contributor

Copilot AI commented Jan 21, 2026

The singular form .github/aw/upgrade-agentic-workflow.md is a dangling file that should not exist. The correct file is the plural form upgrade-agentic-workflows.md.

Changes

  • Extended deleteOldAgentFiles in pkg/cli/copilot-agents.go

    • Added awFiles array to track files to delete from .github/aw/ directory
    • Includes upgrade-agentic-workflow.md (singular form)
    • Preserves upgrade-agentic-workflows.md (plural form)
  • Added test coverage in pkg/cli/copilot_agents_test.go

    • TestDeleteOldAgentFiles covers deletion from both .github/agents and .github/aw directories

Usage

Users running gh aw fix --write will automatically have the dangling file removed:

$ gh aw fix --write --verbose
# ...
Removed old aw file: /path/to/repo/.github/aw/upgrade-agentic-workflow.md
Original prompt

Add codemod to delete dangling agent file

.github/agents/upgrade-agentic-workflows.md
.github/aw/upgrade-agentic-workflow.md (singular file)

Remove .github/aw/upgrade-agentic-workflow.md from this repo and also as a codemod to delete it.

Custom agent used: ci-cleaner
Tidies up the repository CI state by formatting sources, running linters, fixing issues, running tests, and recompiling workflows


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

Copilot AI and others added 2 commits January 21, 2026 22:10
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Add codemod to delete dangling agent file Add codemod to delete dangling upgrade-agentic-workflow.md file Jan 21, 2026
Copilot AI requested a review from pelikhan January 21, 2026 22:17
@pelikhan pelikhan marked this pull request as ready for review January 21, 2026 22:19
@pelikhan pelikhan merged commit 1cfc31f into main Jan 21, 2026
48 checks passed
@pelikhan pelikhan deleted the copilot/remove-upgrade-agentic-workflow-file branch January 21, 2026 22:23
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