Fix: Import merge for project and 10 other safe-output types#12603
Merged
Fix: Import merge for project and 10 other safe-output types#12603
Conversation
Add merge logic for CreateProjectStatusUpdates and other missing safe-output types in mergeSafeOutputConfig function. This fixes the issue where create-project-status-update was not being merged from imported configurations like shared/campaign.md. Missing types added: - CreateProjectStatusUpdates (fixes the reported bug) - CreateProjects - CopyProjects - UpdateDiscussions - LinkSubIssue - HideComment - DispatchWorkflow - AssignToUser - AutofixCodeScanningAlert - MarkPullRequestAsReadyForReview - MissingData Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
Add tests to verify that all project-related safe-output types (create-project-status-update, create-project, copy-project, update-project) and other previously missing types can be properly imported from shared workflows. Tests added: - TestProjectSafeOutputsImport: Verifies project-related types merge correctly - TestAllMissingSafeOutputTypesImport: Verifies all previously missing types merge correctly Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
Reorganize the merge logic in mergeSafeOutputConfig to match the field order in SafeOutputsConfig struct. This improves code maintainability and makes it easier to verify completeness. Changes: - UpdateDiscussions: moved after CreateDiscussions - MarkPullRequestAsReadyForReview: moved after ClosePullRequests - AutofixCodeScanningAlert: moved after CreateCodeScanningAlerts - AssignToUser: moved after AssignToAgent - MissingData: moved after MissingTool (was before) Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Investigate missing tool for project status update creation
Fix: Import merge for project and 10 other safe-output types
Jan 29, 2026
mnkiefer
approved these changes
Jan 29, 2026
mnkiefer
approved these changes
Jan 29, 2026
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.
Workflows importing safe-output configurations from shared files (e.g.,
shared/campaign.md) were silently dropping 11 safe-output types due to missing merge logic.Problem
When imported, the configuration was parsed but never merged, leaving the tool unavailable at runtime.
Changes
Added merge logic for 11 types in
mergeSafeOutputConfig:CreateProjectStatusUpdates(primary issue)CreateProjects,CopyProjects,UpdateDiscussionsLinkSubIssue,HideComment,DispatchWorkflowAssignToUser,AutofixCodeScanningAlert,MarkPullRequestAsReadyForReviewMissingDataReordered merge blocks to match
SafeOutputsConfigstruct field order for maintainability.Added tests verifying import behavior for all affected types.
Result
Compiled workflows now include all safe-output types from imports:
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.