Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 20, 2026

README.md files in .github/workflows/ were incorrectly treated as agentic workflows, causing them to be compiled and included in status listings.

Changes

  • Added filtering helpers (workflows.go)

    • isWorkflowFile() - Case-insensitive check excludes exact "README.md" filename
    • filterWorkflowFiles() - Applies filter to markdown file lists
  • Applied filtering at all discovery points:

    • status_command.go - Status checks
    • compile_helpers.go / compile_orchestration.go - Compilation
    • init.go - Initialization
    • mcp_workflow_scanner.go - MCP scanning
    • remove_command.go - Removal operations

Behavior

// Excluded (case-insensitive)
README.md, readme.md, ReadMe.md

// Still treated as workflows
README-test.md, test-README.md, my-workflow.md

Files with "README" in other positions remain valid workflows - only the exact basename "README.md" is excluded.

Original prompt

Ignore README.md files as agentic workflows, in particular ".github/workflows/README.md"


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

Copilot AI and others added 3 commits January 20, 2026 18:11
…overy

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
… checks

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Ignore README files in agentic workflows Exclude README.md files from workflow discovery Jan 20, 2026
Copilot AI requested a review from pelikhan January 20, 2026 18:17
@pelikhan pelikhan marked this pull request as ready for review January 20, 2026 18:20
@pelikhan pelikhan merged commit b330293 into main Jan 20, 2026
116 checks passed
@pelikhan pelikhan deleted the copilot/ignore-readme-workflows branch January 20, 2026 18:28
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