You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[plan] Fix create_pull_request "context is not defined" error in safeoutputs MCP backend #18643
Fix the create_pull_request tool in the safeoutputs MCP backend that fails with context is not defined error.
Context
From audit discussion #18635 (2026-02-26→2026-02-27):
The Daily Documentation Updater successfully committed changes to branch docs/update-android-arm64-stem-commands-2026-02-27 but could not open a PR because create_pull_request failed 3 times with:
context is not defined
This is a backend error in the safeoutputs MCP server's create_pull_request handler.
Investigation Steps
Open actions/setup/js/safe_outputs_handlers.cjs (or equivalent handler file)
Find the create_pull_request handler function
Identify where context is referenced without being defined/passed
Check if context should be derived from the request parameters, environment, or a module import
Activity
pelikhan commentedon Feb 27, 2026
@copilot context is a global object that only exists in actions/github-script.
Add to shim.cjs