Uh oh!
There was an error while loading. Please reload this page.
Closed
Add safe output support for PR draft status and completion workflow instructions#8577
Conversation
…tions Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
CopilotAI
changed the title
[WIP] Fix barrier preventing PRs from moving out of draft statusAdd PR completion workflow instructions to fix agent draft status barrierJan 2, 2026
pelikhan
commented
Jan 2, 2026
Collaborator
@copilot use safe outputs |
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
ContributorAuthor
Done! Updated to use safe outputs mechanism: Changes in commit 0f2452d:
This provides better security (controlled permissions), auditability (logged actions), and validation (proper context checks) compared to direct MCP calls. |
CopilotAI
changed the title
Add PR completion workflow instructions to fix agent draft status barrierAdd safe output support for PR draft status and completion workflow instructionsJan 2, 2026
11 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
All 6 recent Copilot agent PRs remain stuck in draft status. Agents lack instructions on when/how to mark PRs ready for review, and the existing safe output mechanism didn't support changing draft status.
Changes
Enhanced
update_pull_requestsafe output with:draftboolean field to schema (supports marking PRs ready or converting back to draft)actions/setup/js/andpkg/workflow/js/github.rest.pulls.updateAPI (no code changes needed)Added PR Completion Workflow section to AGENTS.md with:
update_pull_requestsafe output withdraft: falseUsage
Agents should mark PRs ready when all criteria pass using safe outputs:
{"type": "update_pull_request", "draft": false}Benefits of safe output approach:
Mark ready after
make agent-finishsucceeds and feedback is addressed. Keep as draft if tests fail, build broken, or security issues remain.Context
Recent merged PRs (#8571, #8567, #8565) show agents successfully transition from draft→ready when given proper guidance. This codifies that pattern using the recommended safe outputs mechanism.
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.