Fix automated workflow not triggering with /process command
#777
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem
The automated workflow for processing Want submissions was not running when users added
/processto trigger it. The workflow was being skipped as seen in run #18575000113.Root Cause
The workflow trigger condition was too restrictive, requiring both of these to be present in a comment:
@github-copilot[bot]process-wantWhen users naturally typed
/process, the workflow didn't trigger because it didn't match these specific requirements.Solution
1. Flexible Trigger Conditions (Primary Fix)
Updated the workflow
ifcondition from:To:
This now accepts any of:
/process- Simple, intuitive slash command ✨@github-copilot- Any Copilot mention@github-copilot[bot] process-want- Original trigger (backward compatible)2. Enhanced Logging for Debugging
Added comprehensive logging throughout the workflow to help debug future issues:
Example log output:
3. Comprehensive Documentation
Created detailed documentation to support users and maintainers:
.github/workflows/README.md- Complete workflow guide with all triggers explained.github/WORKFLOW_DEBUGGING.md- Debugging procedures and troubleshooting steps.github/TESTING_WORKFLOW_FIX.md- Testing instructions and validation criteria.github/WORKFLOW_FIX_SUMMARY.md- Executive summary of the fixdocs/MANUAL_PROCESSING.md- Added all new trigger optionsUsage
Users can now trigger the workflow by simply commenting on any issue:
Or using alternative triggers:
The workflow will automatically:
Testing
The fix has been validated:
To test in the live environment:
/processto any issueFiles Changed
.github/workflows/process-want-submission.yml- Core fix with new triggers and loggingdocs/MANUAL_PROCESSING.md- Updated trigger instructions.github/workflows/README.md- Workflow documentation.github/WORKFLOW_DEBUGGING.md- Debugging guide.github/TESTING_WORKFLOW_FIX.md- Testing procedures.github/WORKFLOW_FIX_SUMMARY.md- Complete summaryTotal: 270+ lines added across 6 files
Benefits
/processcommand is easy to rememberFixes the issue reported where the workflow was being skipped. Now users can trigger want processing with a simple
/processcommand.Original prompt
Fixes #776
💡 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.