diff options
Diffstat (limited to 'commands')
-rw-r--r-- | commands/bridge_push.go | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/commands/bridge_push.go b/commands/bridge_push.go index 26f42dc4..95ad5f5e 100644 --- a/commands/bridge_push.go +++ b/commands/bridge_push.go @@ -63,11 +63,25 @@ func runBridgePush(cmd *cobra.Command, args []string) error { return nil }) - err = b.ExportAll(ctx, time.Time{}) + events, err := b.ExportAll(ctx, time.Time{}) if err != nil { return err } + exportedIssues := 0 + for result := range events { + if result.Event != core.ExportEventNothing { + fmt.Println(result.String()) + } + + switch result.Event { + case core.ExportEventBug: + exportedIssues++ + } + } + + fmt.Printf("exported %d issues with %s bridge\n", exportedIssues, b.Name) + // send done signal close(done) return nil |