Skip to content

[safe-output-integrator] Add missing merge-pull-request safe-output test workflow and compiler test#27456

Merged
pelikhan merged 1 commit intomainfrom
safe-output-integrator/2026-04-20-e44ac1cef84cbbda
Apr 21, 2026
Merged

[safe-output-integrator] Add missing merge-pull-request safe-output test workflow and compiler test#27456
pelikhan merged 1 commit intomainfrom
safe-output-integrator/2026-04-20-e44ac1cef84cbbda

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

Safe Output Test Coverage

This PR adds test coverage for the one safe-output type that was missing test artifacts: merge-pull-request.

Analysis

All 40 safe-output types were checked against:

  • Test workflows in pkg/cli/workflows/
  • Go compiler tests in pkg/workflow/compiler_safe_outputs_config_test.go

Only merge-pull-request was missing from both.

New Test Workflow Added

  • pkg/cli/workflows/test-copilot-merge-pull-request.md — Demonstrates merge-pull-request usage with required-labels and allowed-branches constraints, using the Copilot engine.

Go Test Added

  • Added "merge_pull_request config" test case to TestAddHandlerManagerConfigEnvVar in pkg/workflow/compiler_safe_outputs_config_test.go
    • Uses MergePullRequestConfig with RequiredLabels and AllowedBranches fields
    • Verifies the type compiles into GH_AW_SAFE_OUTPUTS_HANDLER_CONFIG with key merge_pull_request

Summary

All 40 safe-output types now have test workflows in pkg/cli/workflows/ and Go compiler tests in compiler_safe_outputs_config_test.go. Coverage is complete.

References: §24694880685

Generated by Daily Safe Output Integrator · ● 2.1M ·

  • expires on Apr 23, 2026, 11:10 PM UTC

Add missing test coverage for the merge-pull-request safe output type:
- New test workflow: pkg/cli/workflows/test-copilot-merge-pull-request.md
- New Go test case: merge_pull_request config in compiler_safe_outputs_config_test.go

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@pelikhan pelikhan merged commit dbf0dbc into main Apr 21, 2026
58 checks passed
@pelikhan pelikhan deleted the safe-output-integrator/2026-04-20-e44ac1cef84cbbda branch April 21, 2026 00:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant