aboutsummaryrefslogtreecommitdiffstats
path: root/commands/bridge_push.go
diff options
context:
space:
mode:
authoramine <hilalyamine@gmail.com>2019-10-25 16:42:48 +0200
committeramine <hilalyamine@gmail.com>2019-11-03 17:21:27 +0100
commit614bc5a2c53409a8e9c85ab31a104428069aa7b3 (patch)
treeed0b7ff3ede31828510492c3266c351741033cf2 /commands/bridge_push.go
parent16bd116971bb7abc7308e95c474b433512672432 (diff)
downloadgit-bug-614bc5a2c53409a8e9c85ab31a104428069aa7b3.tar.gz
commands: support bridge imports after a given date and resumable imports
Diffstat (limited to 'commands/bridge_push.go')
-rw-r--r--commands/bridge_push.go17
1 files changed, 1 insertions, 16 deletions
diff --git a/commands/bridge_push.go b/commands/bridge_push.go
index 00413f06..26f42dc4 100644
--- a/commands/bridge_push.go
+++ b/commands/bridge_push.go
@@ -63,28 +63,13 @@ func runBridgePush(cmd *cobra.Command, args []string) error {
return nil
})
- // TODO: by default export only new events
- events, err := b.ExportAll(ctx, time.Time{})
+ 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++
- }
- }
-
// send done signal
close(done)
-
- fmt.Printf("Successfully exported %d issues with %s bridge\n", exportedIssues, b.Name)
return nil
}