aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bug/operation_pack.go1
-rw-r--r--bug/person.go1
-rw-r--r--commands/close.go1
-rw-r--r--commands/commands.go1
-rw-r--r--commands/comment.go1
-rw-r--r--commands/label.go3
-rw-r--r--commands/ls.go1
-rw-r--r--commands/new.go1
-rw-r--r--commands/open.go1
-rw-r--r--commands/pull.go3
-rw-r--r--commands/root.go3
-rw-r--r--commands/show.go3
-rw-r--r--commands/webui.go9
-rw-r--r--graphql/resolvers/bug.go1
-rw-r--r--graphql/resolvers/operations.go3
-rw-r--r--graphql/resolvers/query.go1
-rw-r--r--graphql/resolvers/repo.go1
-rw-r--r--input/input.go5
-rw-r--r--repository/repo.go3
-rw-r--r--repository/tree_entry.go3
-rw-r--r--tests/bug_actions_test.go7
21 files changed, 37 insertions, 16 deletions
diff --git a/bug/operation_pack.go b/bug/operation_pack.go
index 5de60bde..307c0109 100644
--- a/bug/operation_pack.go
+++ b/bug/operation_pack.go
@@ -3,6 +3,7 @@ package bug
import (
"bytes"
"encoding/gob"
+
"github.com/MichaelMure/git-bug/repository"
"github.com/MichaelMure/git-bug/util"
)
diff --git a/bug/person.go b/bug/person.go
index 5c9dcc4c..674da9f2 100644
--- a/bug/person.go
+++ b/bug/person.go
@@ -2,6 +2,7 @@ package bug
import (
"errors"
+
"github.com/MichaelMure/git-bug/repository"
)
diff --git a/commands/close.go b/commands/close.go
index f57519ea..10420a4e 100644
--- a/commands/close.go
+++ b/commands/close.go
@@ -2,6 +2,7 @@ package commands
import (
"errors"
+
"github.com/MichaelMure/git-bug/bug"
"github.com/MichaelMure/git-bug/bug/operations"
"github.com/spf13/cobra"
diff --git a/commands/commands.go b/commands/commands.go
index 0ab84717..51aa4e9a 100644
--- a/commands/commands.go
+++ b/commands/commands.go
@@ -2,6 +2,7 @@ package commands
import (
"fmt"
+
"github.com/spf13/cobra"
)
diff --git a/commands/comment.go b/commands/comment.go
index 0a76e4ce..97aa18aa 100644
--- a/commands/comment.go
+++ b/commands/comment.go
@@ -3,6 +3,7 @@ package commands
import (
"errors"
"fmt"
+
"github.com/MichaelMure/git-bug/bug"
"github.com/MichaelMure/git-bug/bug/operations"
"github.com/MichaelMure/git-bug/input"
diff --git a/commands/label.go b/commands/label.go
index ee6ed25f..6c729ff5 100644
--- a/commands/label.go
+++ b/commands/label.go
@@ -2,10 +2,11 @@ package commands
import (
"errors"
+ "os"
+
"github.com/MichaelMure/git-bug/bug"
"github.com/MichaelMure/git-bug/bug/operations"
"github.com/spf13/cobra"
- "os"
)
var labelRemove bool
diff --git a/commands/ls.go b/commands/ls.go
index 5a5d96c6..30aa7bdc 100644
--- a/commands/ls.go
+++ b/commands/ls.go
@@ -2,6 +2,7 @@ package commands
import (
"fmt"
+
"github.com/MichaelMure/git-bug/bug"
"github.com/MichaelMure/git-bug/util"
"github.com/spf13/cobra"
diff --git a/commands/new.go b/commands/new.go
index a13e36bf..bd0966e5 100644
--- a/commands/new.go
+++ b/commands/new.go
@@ -2,6 +2,7 @@ package commands
import (
"fmt"
+
"github.com/MichaelMure/git-bug/bug"
"github.com/MichaelMure/git-bug/bug/operations"
"github.com/MichaelMure/git-bug/input"
diff --git a/commands/open.go b/commands/open.go
index c99578cf..8a5ede3d 100644
--- a/commands/open.go
+++ b/commands/open.go
@@ -2,6 +2,7 @@ package commands
import (
"errors"
+
"github.com/MichaelMure/git-bug/bug"
"github.com/MichaelMure/git-bug/bug/operations"
"github.com/spf13/cobra"
diff --git a/commands/pull.go b/commands/pull.go
index 52b3ecd8..ff07912a 100644
--- a/commands/pull.go
+++ b/commands/pull.go
@@ -2,9 +2,10 @@ package commands
import (
"errors"
+ "os"
+
"github.com/MichaelMure/git-bug/bug"
"github.com/spf13/cobra"
- "os"
)
func runPull(cmd *cobra.Command, args []string) error {
diff --git a/commands/root.go b/commands/root.go
index df8d3d32..ac2a75d8 100644
--- a/commands/root.go
+++ b/commands/root.go
@@ -2,10 +2,11 @@ package commands
import (
"fmt"
+ "os"
+
"github.com/MichaelMure/git-bug/bug"
"github.com/MichaelMure/git-bug/repository"
"github.com/spf13/cobra"
- "os"
)
// Will display "git bug"
diff --git a/commands/show.go b/commands/show.go
index 8cf3e34a..fe7581a7 100644
--- a/commands/show.go
+++ b/commands/show.go
@@ -3,10 +3,11 @@ package commands
import (
"errors"
"fmt"
+ "strings"
+
"github.com/MichaelMure/git-bug/bug"
"github.com/MichaelMure/git-bug/util"
"github.com/spf13/cobra"
- "strings"
)
func runShowBug(cmd *cobra.Command, args []string) error {
diff --git a/commands/webui.go b/commands/webui.go
index 0389d68b..9ebced09 100644
--- a/commands/webui.go
+++ b/commands/webui.go
@@ -4,6 +4,11 @@ import (
"bytes"
"encoding/json"
"fmt"
+ "io/ioutil"
+ "log"
+ "net/http"
+ "time"
+
"github.com/MichaelMure/git-bug/graphql"
"github.com/MichaelMure/git-bug/repository"
"github.com/MichaelMure/git-bug/util"
@@ -13,10 +18,6 @@ import (
"github.com/skratchdot/open-golang/open"
"github.com/spf13/cobra"
"github.com/vektah/gqlgen/handler"
- "io/ioutil"
- "log"
- "net/http"
- "time"
)
var port int
diff --git a/graphql/resolvers/bug.go b/graphql/resolvers/bug.go
index 014a0f31..b3385243 100644
--- a/graphql/resolvers/bug.go
+++ b/graphql/resolvers/bug.go
@@ -2,6 +2,7 @@ package resolvers
import (
"context"
+
"github.com/MichaelMure/git-bug/bug"
"github.com/MichaelMure/git-bug/graphql/connections"
"github.com/MichaelMure/git-bug/graphql/models"
diff --git a/graphql/resolvers/operations.go b/graphql/resolvers/operations.go
index 086bc249..a0058a42 100644
--- a/graphql/resolvers/operations.go
+++ b/graphql/resolvers/operations.go
@@ -3,10 +3,11 @@ package resolvers
import (
"context"
"fmt"
+ "time"
+
"github.com/MichaelMure/git-bug/bug"
"github.com/MichaelMure/git-bug/bug/operations"
"github.com/MichaelMure/git-bug/graphql/models"
- "time"
)
type addCommentOperationResolver struct{}
diff --git a/graphql/resolvers/query.go b/graphql/resolvers/query.go
index bca4806f..4154964f 100644
--- a/graphql/resolvers/query.go
+++ b/graphql/resolvers/query.go
@@ -2,6 +2,7 @@ package resolvers
import (
"context"
+
"github.com/MichaelMure/git-bug/cache"
"github.com/MichaelMure/git-bug/graphql/models"
)
diff --git a/graphql/resolvers/repo.go b/graphql/resolvers/repo.go
index 388f28f5..5756a9ee 100644
--- a/graphql/resolvers/repo.go
+++ b/graphql/resolvers/repo.go
@@ -2,6 +2,7 @@ package resolvers
import (
"context"
+
"github.com/MichaelMure/git-bug/bug"
"github.com/MichaelMure/git-bug/graphql/connections"
"github.com/MichaelMure/git-bug/graphql/models"
diff --git a/input/input.go b/input/input.go
index 43fb9613..8e7f3d97 100644
--- a/input/input.go
+++ b/input/input.go
@@ -6,12 +6,13 @@ import (
"bufio"
"bytes"
"fmt"
- "github.com/MichaelMure/git-bug/repository"
- "github.com/pkg/errors"
"io/ioutil"
"os"
"os/exec"
"strings"
+
+ "github.com/MichaelMure/git-bug/repository"
+ "github.com/pkg/errors"
)
const messageFilename = "BUG_MESSAGE_EDITMSG"
diff --git a/repository/repo.go b/repository/repo.go
index 9ffb470e..0c573465 100644
--- a/repository/repo.go
+++ b/repository/repo.go
@@ -3,8 +3,9 @@ package repository
import (
"bytes"
- "github.com/MichaelMure/git-bug/util"
"strings"
+
+ "github.com/MichaelMure/git-bug/util"
)
// Repo represents a source code repository.
diff --git a/repository/tree_entry.go b/repository/tree_entry.go
index 6716522c..8b6b5e1b 100644
--- a/repository/tree_entry.go
+++ b/repository/tree_entry.go
@@ -2,8 +2,9 @@ package repository
import (
"fmt"
- "github.com/MichaelMure/git-bug/util"
"strings"
+
+ "github.com/MichaelMure/git-bug/util"
)
type TreeEntry struct {
diff --git a/tests/bug_actions_test.go b/tests/bug_actions_test.go
index 96f1bc74..57dcee81 100644
--- a/tests/bug_actions_test.go
+++ b/tests/bug_actions_test.go
@@ -2,13 +2,14 @@ package tests
import (
"fmt"
- "github.com/MichaelMure/git-bug/bug"
- "github.com/MichaelMure/git-bug/bug/operations"
- "github.com/MichaelMure/git-bug/repository"
"io/ioutil"
"log"
"os"
"testing"
+
+ "github.com/MichaelMure/git-bug/bug"
+ "github.com/MichaelMure/git-bug/bug/operations"
+ "github.com/MichaelMure/git-bug/repository"
)
func createRepo(bare bool) *repository.GitRepo {