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"
)
Michael Muré created
bug/operation_pack.go | 1 +
bug/person.go | 1 +
commands/close.go | 1 +
commands/commands.go | 1 +
commands/comment.go | 1 +
commands/label.go | 3 ++-
commands/ls.go | 1 +
commands/new.go | 1 +
commands/open.go | 1 +
commands/pull.go | 3 ++-
commands/root.go | 3 ++-
commands/show.go | 3 ++-
commands/webui.go | 9 +++++----
graphql/resolvers/bug.go | 1 +
graphql/resolvers/operations.go | 3 ++-
graphql/resolvers/query.go | 1 +
graphql/resolvers/repo.go | 1 +
input/input.go | 5 +++--
repository/repo.go | 3 ++-
repository/tree_entry.go | 3 ++-
tests/bug_actions_test.go | 7 ++++---
21 files changed, 37 insertions(+), 16 deletions(-)
@@ -3,6 +3,7 @@ package bug
import (
"bytes"
"encoding/gob"
+
"github.com/MichaelMure/git-bug/repository"
"github.com/MichaelMure/git-bug/util"
)
@@ -2,6 +2,7 @@ package bug
import (
"errors"
+
"github.com/MichaelMure/git-bug/repository"
)
@@ -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"
@@ -2,6 +2,7 @@ package commands
import (
"fmt"
+
"github.com/spf13/cobra"
)
@@ -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"
@@ -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
@@ -2,6 +2,7 @@ package commands
import (
"fmt"
+
"github.com/MichaelMure/git-bug/bug"
"github.com/MichaelMure/git-bug/util"
"github.com/spf13/cobra"
@@ -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"
@@ -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"
@@ -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 {
@@ -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"
@@ -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 {
@@ -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
@@ -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"
@@ -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{}
@@ -2,6 +2,7 @@ package resolvers
import (
"context"
+
"github.com/MichaelMure/git-bug/cache"
"github.com/MichaelMure/git-bug/graphql/models"
)
@@ -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"
@@ -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"
@@ -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.
@@ -2,8 +2,9 @@ package repository
import (
"fmt"
- "github.com/MichaelMure/git-bug/util"
"strings"
+
+ "github.com/MichaelMure/git-bug/util"
)
type TreeEntry struct {
@@ -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 {