Skip to content

Suggested test: copilot/create-pull-request-with-labels #9241

Description

@github-actions

Motivation

Link to the gh-aw PR: github/gh-aw#48100 — Fix mcp-cli per-field stdin mode: when an agent piped a full JSON payload with --body ., the entire JSON string was assigned as the field value instead of extracting the named field. This affected create_pull_request (which has an array-typed labels field, triggering JSON mode).

Proposed test

  • Workflow file: test-copilot-create-pull-request-labels.md
  • Trigger: workflow_dispatch
  • Engine: copilot
  • Safe output: create-pull-request
  • Variant: standard

Minimal test prompt sketch

The agent creates a pull request and the safe-outputs block configures labels as a non-empty array. The test verifies that the PR is created with the correct label(s) attached — confirming that per-field stdin JSON extraction works correctly rather than embedding raw JSON into the PR body.

New fixtures or secrets needed

None — the existing githubnext/gh-aw-test repo supports PR creation. A pre-existing branch is not required; create-pull-request can push to a new branch via the safe-output.

Notes

The existing test-copilot-create-pull-request.md test does not assert on label values. A dedicated test that includes a labels array in the safe-output config would catch any regression of the per-field stdin extraction bug fixed in #48100.

Generated by 🔍 Suggest New E2E Tests · sonnet46 · 30 AIC · ⌖ 8.78 AIC · ⊞ 6.1K ·

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions