Fix test-proxy.md to use PR comments instead of creating GitHub issues #190
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
test-proxy.md
workflow was creating a new GitHub issue every time it ran, which clutters the repository with test result issues. This behavior was problematic because:Solution
Updated the workflow to use the issue comment output processing instead of issue creation:
Before:
After:
Key Changes
Replaced issue creation with comment creation: Added
output.issue_comment: {}
to enable automatic comment creation on PRs instead of standalone issuesRemoved explicit permissions: The compiler now automatically handles permissions for the comment creation job, providing appropriate
issues: write
andpull-requests: write
only to the comment jobUpdated reporting instructions: Modified the natural language prompt to focus on commenting when there are failures or notable issues, rather than always creating comprehensive reports
Conditional execution: Comments are only created when the agent produces output and the workflow runs in a PR context
Benefits
The compiled workflow now generates a
create_issue_comment
job that runs conditionally after the main test job, providing feedback directly where it's most useful.Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
api.contoso.com
/tmp/go-build3766680747/b278/cli.test -test.testlogfile=/tmp/go-build3766680747/b278/testlog.txt -test.paniconexit0 -test.timeout=10m0s -test.v=true
(dns block)/tmp/go-build3299413574/b278/cli.test -test.testlogfile=/tmp/go-build3299413574/b278/testlog.txt -test.paniconexit0 -test.timeout=10m0s -test.v=true
(dns block)If you need me to access, download, or install something from one of these locations, you can either:
💡 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.