Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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/)test-copilot-create-discussion.mdcreate-discussiontest-copilot-close-issue.mdclose-issuetest-copilot-submit-pull-request-review.mdsubmit-pull-request-reviewtest-copilot-reply-to-pull-request-review-comment.mdreply-to-pull-request-review-commenttest-copilot-resolve-pull-request-review-thread.mdresolve-pull-request-review-threadtest-copilot-create-code-scanning-alerts.mdcreate-code-scanning-alertstest-copilot-remove-labels.mdremove-labelstest-copilot-update-pull-request.mdupdate-pull-requesttest-copilot-update-project.mdupdate-projecttest-copilot-create-project.mdcreate-projecttest-copilot-create-project-status-update.mdcreate-project-status-updatetest-copilot-link-sub-issue.mdlink-sub-issuetest-copilot-dispatch-workflow.mddispatch-workflowtest-copilot-call-workflow.mdcall-workflowtest-copilot-missing-data.mdmissing-dataGo Tests Added (
pkg/workflow/compiler_safe_outputs_config_test.go)New test cases added to
TestAddHandlerManagerConfigEnvVar:submit_pull_request_review configreply_to_pull_request_review_comment configresolve_pull_request_review_thread configcreate_code_scanning_alert configremove_labels configupdate_pull_request configupdate_project configcreate_project configcreate_project_status_update configlink_sub_issue configdispatch_workflow configSummary
All 15 previously uncovered safe-output types now have test workflows and the 11 missing Go compiler test cases have been added.
References: §23205895696