aboutsummaryrefslogtreecommitdiffstats
path: root/commands/bridge_push.go
diff options
context:
space:
mode:
authorAmine <hilalyamine@gmail.com>2019-11-03 17:34:51 +0100
committerGitHub <noreply@github.com>2019-11-03 17:34:51 +0100
commit163ea9c93306c387f84ff0b85c2d8fca4c01e449 (patch)
tree05ab55090bf196b940a4f6b0e4aaec9975b997bc /commands/bridge_push.go
parent16bd116971bb7abc7308e95c474b433512672432 (diff)
parent57e23c8ada0a9d921a6b68187a76eb5c8b8a407d (diff)
downloadgit-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.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
}