@@ -109,11 +109,7 @@ const getOutputTypeForPath = (
109109
110110 if ( firstTrigger ?. outputs ) {
111111 const pathParts = outputPath . split ( '.' )
112- // For GitHub trigger, treat 'github' as an implicit root so users can reference fields directly
113- let currentObj : any =
114- firstTrigger . id === 'github_webhook' && ( firstTrigger as any ) . outputs . github
115- ? ( firstTrigger as any ) . outputs . github
116- : firstTrigger . outputs
112+ let currentObj : any = firstTrigger . outputs
117113
118114 for ( const part of pathParts ) {
119115 if ( currentObj && typeof currentObj === 'object' ) {
@@ -425,13 +421,8 @@ export const TagDropdown: React.FC<TagDropdownProps> = ({
425421 const firstTrigger = triggers [ 0 ]
426422
427423 if ( firstTrigger ?. outputs ) {
428- // For GitHub trigger, hide the top-level 'github' wrapper for cleaner tags
429- const outputsRoot =
430- firstTrigger . id === 'github_webhook' && ( firstTrigger as any ) . outputs . github
431- ? ( firstTrigger as any ) . outputs . github
432- : firstTrigger . outputs
433424 // Use trigger outputs instead of block outputs
434- const outputPaths = generateOutputPaths ( outputsRoot )
425+ const outputPaths = generateOutputPaths ( firstTrigger . outputs )
435426 blockTags = outputPaths . map ( ( path ) => `${ normalizedBlockName } .${ path } ` )
436427 } else {
437428 const outputPaths = generateOutputPaths ( blockConfig . outputs || { } )
@@ -699,13 +690,8 @@ export const TagDropdown: React.FC<TagDropdownProps> = ({
699690 const firstTrigger = triggers [ 0 ]
700691
701692 if ( firstTrigger ?. outputs ) {
702- // For GitHub trigger, hide the top-level 'github' wrapper for cleaner tags
703- const outputsRoot =
704- firstTrigger . id === 'github_webhook' && ( firstTrigger as any ) . outputs . github
705- ? ( firstTrigger as any ) . outputs . github
706- : firstTrigger . outputs
707693 // Use trigger outputs instead of block outputs
708- const outputPaths = generateOutputPaths ( outputsRoot )
694+ const outputPaths = generateOutputPaths ( firstTrigger . outputs )
709695 blockTags = outputPaths . map ( ( path ) => `${ normalizedBlockName } .${ path } ` )
710696 } else {
711697 const outputPaths = generateOutputPaths ( blockConfig . outputs || { } )
0 commit comments