Skip to content

create-pull-request safe output does not add reviewers configured in workflow #21207

@alondahari

Description

@alondahari

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

  1. Configure a workflow with reviewers in the safe output:
safe-outputs:
  create-pull-request:
    draft: false
    labels: [status-update]
    reviewers: [alondahari]
  1. Run the workflow and let the agent create a PR.

  2. 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_CONFIG does not include reviewers:
    {"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

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.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions