diff options
author | Amine <hilalyamine@gmail.com> | 2019-11-03 17:34:51 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-03 17:34:51 +0100 |
commit | 163ea9c93306c387f84ff0b85c2d8fca4c01e449 (patch) | |
tree | 05ab55090bf196b940a4f6b0e4aaec9975b997bc /commands/bridge_push.go | |
parent | 16bd116971bb7abc7308e95c474b433512672432 (diff) | |
parent | 57e23c8ada0a9d921a6b68187a76eb5c8b8a407d (diff) | |
download | git-bug-163ea9c93306c387f84ff0b85c2d8fca4c01e449.tar.gz |
Merge pull request #236 from MichaelMure/import-after
commands: support bridge imports after a given date
Diffstat (limited to 'commands/bridge_push.go')
-rw-r--r-- | commands/bridge_push.go | 17 |
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 } |