-
Notifications
You must be signed in to change notification settings - Fork 296
Closed
Closed
Copy link
Labels
Description
Bug
The reviewers field in the create-pull-request safe output configuration is not applied when the PR is actually created. Reviewers are mentioned in the tool description shown to the agent but never added via the GitHub API.
Steps to Reproduce
- Configure a workflow with reviewers in the safe output:
safe-outputs:
create-pull-request:
draft: false
labels: [status-update]
reviewers: [alondahari]-
Run the workflow and let the agent create a PR.
-
Observe that the PR has labels applied but no review request.
Expected Behavior
The configured reviewers should be requested for review on the created PR, similar to how labels are applied.
Actual Behavior
- The compiled tool description says: "Reviewers [alondahari] will be assigned"
- The compiled
GH_AW_SAFE_OUTPUTS_HANDLER_CONFIGdoes not includereviewers:{"create_pull_request":{"base_branch":"...","draft":false,"labels":["status-update"],"max":1,"max_patch_size":1024}} - Job logs confirm labels are added but no reviewer assignment step occurs:
Created pull request #683 Added labels to pull request: ["status-update","status-update"] ✓ Message 1 (create_pull_request) completed successfully
Environment
gh awversion: v0.42.7 (also reproduced after updating to v0.58.3)- Workflow:
weekly-status-update.lock.yml - Example PR missing reviewers: https://github.com/github/copilot-indexing-issues-prs/pull/683
Notes
The reviewers field is correctly propagated to the tool description text (so the agent knows reviewers will be added), but it is not included in the handler config that the safe_output_handler_manager uses to actually process the PR creation. The handler adds labels but skips the review request API call.
Reactions are currently unavailable