File tree Expand file tree Collapse file tree
commands/inventory/commands Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -400,15 +400,22 @@ def _display_summary(self, inventory: dict) -> None:
400400 def post_execute (self , ** kwargs ) -> None :
401401 """Post inventory summary to PR if --post-to-pr flag is set."""
402402 if not getattr (self , '_post_to_pr' , False ):
403+ logger .info ("post_execute: --post-to-pr not set, skipping" )
403404 return
404405
405406 inventory = getattr (self , '_inventory' , None )
406- if not inventory or not inventory .get ("components" ):
407+ if not inventory :
408+ self .ui .print_warning ("⚠️ No inventory data available to post to PR" )
409+ return
410+ if not inventory .get ("components" ):
411+ self .ui .print_warning ("⚠️ Inventory has no components to post to PR" )
407412 return
408413
409414 from ....core .integrations .pr_comments .pr_comment_publisher import publish_to_pr
410415
411416 content = self ._build_inventory_markdown (inventory )
417+ logger .info (f"post_execute: built markdown ({ len (content )} chars)" )
418+
412419 if publish_to_pr (
413420 content = content ,
414421 vcs_provider = getattr (self , '_vcs_provider' , 'auto' ),
Original file line number Diff line number Diff line change 11"""Version module."""
2- __version__ = "0.10.33 "
2+ __version__ = "0.10.34 "
You can’t perform that action at this time.
0 commit comments