Skip to content

Commit 5be30eb

Browse files
Copilotpelikhan
andcommitted
Add upgrade-agentic-workflows.md to deletion list
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
1 parent d61b5bb commit 5be30eb

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

pkg/cli/copilot-agents.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,7 @@ func deleteOldAgentFiles(verbose bool) error {
308308
"create-agentic-workflow.md",
309309
"setup-agentic-workflows.md",
310310
"update-agentic-workflows.md",
311+
"upgrade-agentic-workflows.md",
311312
}
312313

313314
// Also delete the dangling singular form file from .github/aw/

pkg/cli/copilot_agents_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,11 +255,13 @@ func TestDeleteOldAgentFiles(t *testing.T) {
255255
".github/agents/create-agentic-workflow.md",
256256
".github/agents/setup-agentic-workflows.md",
257257
".github/agents/update-agentic-workflows.md",
258+
".github/agents/upgrade-agentic-workflows.md",
258259
},
259260
expectedDeleted: []string{
260261
".github/agents/create-agentic-workflow.md",
261262
".github/agents/setup-agentic-workflows.md",
262263
".github/agents/update-agentic-workflows.md",
264+
".github/agents/upgrade-agentic-workflows.md",
263265
},
264266
},
265267
{
@@ -271,6 +273,7 @@ func TestDeleteOldAgentFiles(t *testing.T) {
271273
".github/agents/create-agentic-workflow.md",
272274
".github/agents/setup-agentic-workflows.md",
273275
".github/agents/update-agentic-workflows.md",
276+
".github/agents/upgrade-agentic-workflows.md",
274277
".github/aw/upgrade-agentic-workflow.md",
275278
},
276279
expectedDeleted: []string{
@@ -280,6 +283,7 @@ func TestDeleteOldAgentFiles(t *testing.T) {
280283
".github/agents/create-agentic-workflow.md",
281284
".github/agents/setup-agentic-workflows.md",
282285
".github/agents/update-agentic-workflows.md",
286+
".github/agents/upgrade-agentic-workflows.md",
283287
".github/aw/upgrade-agentic-workflow.md",
284288
},
285289
},

0 commit comments

Comments
 (0)