commands: silence export and import nothing events

Amine Hilaly created

Change summary

commands/bridge_pull.go | 4 +++-
commands/bridge_push.go | 4 +++-
2 files changed, 6 insertions(+), 2 deletions(-)

Detailed changes

commands/bridge_pull.go 🔗

@@ -73,7 +73,9 @@ func runBridgePull(cmd *cobra.Command, args []string) error {
 	importedIssues := 0
 	importedIdentities := 0
 	for result := range events {
-		fmt.Println(result.String())
+		if result.Event != core.ImportEventNothing {
+			fmt.Println(result.String())
+		}
 
 		switch result.Event {
 		case core.ImportEventBug:

commands/bridge_push.go 🔗

@@ -71,7 +71,9 @@ func runBridgePush(cmd *cobra.Command, args []string) error {
 
 	exportedIssues := 0
 	for result := range events {
-		fmt.Println(result.String())
+		if result.Event != core.ExportEventNothing {
+			fmt.Println(result.String())
+		}
 
 		switch result.Event {
 		case core.ExportEventBug: