-
Notifications
You must be signed in to change notification settings - Fork 36
Resolve PR from current branch in agent failure messages #9647
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
- Add findPullRequestForCurrentBranch() function to resolve PR from current branch - Update template to include PR information when available - Remove "source" field from agent_failure_issue.md template - Update all tests to account for new PR search API call - Add tests for PR found/not found scenarios Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
|
@copilot conclusion need pull request read permissions too |
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
The conclusion job already has |
|
🎉 Yo ho ho! Changeset Generator found the treasure and completed successfully! ⚓💰 |
|
📰 VERDICT: Smoke Copilot has concluded. All systems operational. This is a developing story. 🎤 |
|
✨ The prophecy is fulfilled... Smoke Codex has completed its mystical journey. The stars align. 🌟 |
|
🎬 THE END — Smoke Claude MISSION: ACCOMPLISHED! The hero saves the day! ✨ |
Smoke Test ResultsLast 2 merged PRs:
Test Results:
Overall Status: PASS
|
Agent failure messages displayed the workflow source path (which is often empty or unhelpful) instead of linking to the associated pull request.
Changes
Enhanced failure detection
findPullRequestForCurrentBranch()to resolve PR via GitHub search API using current branch nameSimplified template
agent_failure_issue.mdpull_request_infoplaceholder that renders as- **Pull Request:** [#99](url)when PR existsTest coverage
Example output
When a PR exists:
When no PR exists, the PR line is omitted entirely.
Original prompt
💡 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.