Skip to content

[safe-output-integrator] Add missing safe-output test workflows and Go compiler tests#21427

Merged
pelikhan merged 2 commits intomainfrom
safe-output-integrator/2026-03-17-8d13f4ae2ca99110
Mar 17, 2026
Merged

[safe-output-integrator] Add missing safe-output test workflows and Go compiler tests#21427
pelikhan merged 2 commits intomainfrom
safe-output-integrator/2026-03-17-8d13f4ae2ca99110

Conversation

@github-actions
Copy link
Contributor

Safe Output Test Coverage

This PR adds test workflows and Go compiler tests for 15 safe-output types that lacked test coverage.

New Test Workflows Added (pkg/cli/workflows/)

File Safe-Output Type
test-copilot-create-discussion.md create-discussion
test-copilot-close-issue.md close-issue
test-copilot-submit-pull-request-review.md submit-pull-request-review
test-copilot-reply-to-pull-request-review-comment.md reply-to-pull-request-review-comment
test-copilot-resolve-pull-request-review-thread.md resolve-pull-request-review-thread
test-copilot-create-code-scanning-alerts.md create-code-scanning-alerts
test-copilot-remove-labels.md remove-labels
test-copilot-update-pull-request.md update-pull-request
test-copilot-update-project.md update-project
test-copilot-create-project.md create-project
test-copilot-create-project-status-update.md create-project-status-update
test-copilot-link-sub-issue.md link-sub-issue
test-copilot-dispatch-workflow.md dispatch-workflow
test-copilot-call-workflow.md call-workflow
test-copilot-missing-data.md missing-data

Go Tests Added (pkg/workflow/compiler_safe_outputs_config_test.go)

New test cases added to TestAddHandlerManagerConfigEnvVar:

  • submit_pull_request_review config
  • reply_to_pull_request_review_comment config
  • resolve_pull_request_review_thread config
  • create_code_scanning_alert config
  • remove_labels config
  • update_pull_request config
  • update_project config
  • create_project config
  • create_project_status_update config
  • link_sub_issue config
  • dispatch_workflow config

Note: create_discussion, close_issue, call_workflow, and missing_data already had Go test cases.

Summary

All 15 previously uncovered safe-output types now have test workflows and the 11 missing Go compiler test cases have been added.

References: §23205895696

Generated by Daily Safe Output Integrator ·

  • expires on Mar 20, 2026, 5:01 PM UTC

Add test workflows and Go compiler tests for 15 safe-output types
that lacked test coverage in pkg/cli/workflows/ and
compiler_safe_outputs_config_test.go.

New test workflow files:
- test-copilot-create-discussion.md
- test-copilot-close-issue.md
- test-copilot-submit-pull-request-review.md
- test-copilot-reply-to-pull-request-review-comment.md
- test-copilot-resolve-pull-request-review-thread.md
- test-copilot-create-code-scanning-alerts.md
- test-copilot-remove-labels.md
- test-copilot-update-pull-request.md
- test-copilot-update-project.md
- test-copilot-create-project.md
- test-copilot-create-project-status-update.md
- test-copilot-link-sub-issue.md
- test-copilot-dispatch-workflow.md
- test-copilot-call-workflow.md
- test-copilot-missing-data.md

New Go test cases in TestAddHandlerManagerConfigEnvVar:
- submit_pull_request_review config
- reply_to_pull_request_review_comment config
- resolve_pull_request_review_thread config
- create_code_scanning_alert config
- remove_labels config
- update_pull_request config
- update_project config
- create_project config
- create_project_status_update config
- link_sub_issue config
- dispatch_workflow config

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@pelikhan pelikhan merged commit 5cb9ec0 into main Mar 17, 2026
53 checks passed
@pelikhan pelikhan deleted the safe-output-integrator/2026-03-17-8d13f4ae2ca99110 branch March 17, 2026 18:08
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