Skip to content

Add automatic issue closure to Check for Copilot Model Updates workflow#79

Merged
rajbos merged 2 commits intomainfrom
copilot/update-check-for-copilot-models
Dec 27, 2025
Merged

Add automatic issue closure to Check for Copilot Model Updates workflow#79
rajbos merged 2 commits intomainfrom
copilot/update-check-for-copilot-models

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Dec 27, 2025

The workflow creates issues when models are missing but never closes them when resolved. This creates stale issues that require manual cleanup.

Changes

Added automatic issue closure

  • New workflow step runs when needs_update=false
  • Finds open issues with title "🤖 Action Required: Update Copilot Supported Models" and label maintenance
  • Posts closing comment and closes issue automatically

Added workflow triggers for model data files

  • Triggers on push to src/tokenEstimators.json and src/modelPricing.json
  • Enables immediate validation when developers fix missing models
  • Creates feedback loop: issue creation → developer fixes → automatic verification → issue closure

Workflow behavior

# Before: Only create path
Missing models → Create issue → [Manual closure required]

# After: Complete lifecycle
Missing models → Create issue → Models added → Workflow runs → Close issue
Original prompt

Update the workflow "Check for Copilot Model Updates" to close any open issue when there are no open models to be added to the list.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

…ger on JSON file changes

Co-authored-by: rajbos <6085745+rajbos@users.noreply.github.com>
Copilot AI changed the title [WIP] Update workflow to close open issues if no models found Add automatic issue closure to Check for Copilot Model Updates workflow Dec 27, 2025
Copilot AI requested a review from rajbos December 27, 2025 22:44
@rajbos rajbos marked this pull request as ready for review December 27, 2025 22:46
@rajbos rajbos merged commit 639661d into main Dec 27, 2025
14 checks passed
@rajbos rajbos deleted the copilot/update-check-for-copilot-models branch December 27, 2025 22:48
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