mirror of
https://github.com/MichaelMure/git-bug.git
synced 2024-12-04 07:03:24 +03:00
feat: update references to the git-bug organization (#1249)
The repository was recently moved to the git-bug organization on github. This change refactors references to the repository to ensure that they use the updated owner URI. Closes: #1243 Change-Id: I799712354c6ba25cdd8b06286275850c52efe6ff
This commit is contained in:
parent
63295b1106
commit
2004fa79e6
@ -11,7 +11,7 @@ show a command that [clones the repository][how-to-clone] using SSH, and places
|
||||
it in `~/code/git-bug`.
|
||||
|
||||
```
|
||||
git clone git@github.com:MichaelMure/git-bug ~/code/git-bug
|
||||
git clone git@github.com:git-bug/git-bug ~/code/git-bug
|
||||
```
|
||||
|
||||
> [!IMPORTANT]
|
||||
|
2
Makefile
2
Makefile
@ -9,7 +9,7 @@ ifeq ($(UNAME_S),Darwin)
|
||||
XARGS:=xargs
|
||||
endif
|
||||
|
||||
COMMANDS_PATH:=github.com/MichaelMure/git-bug/commands
|
||||
COMMANDS_PATH:=github.com/git-bug/git-bug/commands
|
||||
LDFLAGS:=-X ${COMMANDS_PATH}.GitCommit=${GIT_COMMIT} \
|
||||
-X ${COMMANDS_PATH}.GitLastTag=${GIT_LAST_TAG} \
|
||||
-X ${COMMANDS_PATH}.GitExactTag=${GIT_EXACT_TAG}
|
||||
|
18
README.md
18
README.md
@ -1,5 +1,5 @@
|
||||
<p align="center">
|
||||
<img width="150px" src="https://cdn.rawgit.com/MichaelMure/git-bug/master/misc/logo/logo-alpha-flat-bg.svg">
|
||||
<img width="150px" src="https://cdn.rawgit.com/git-bug/git-bug/master/misc/logo/logo-alpha-flat-bg.svg">
|
||||
</p>
|
||||
<h1 align="center">git-bug</h1>
|
||||
|
||||
@ -8,8 +8,8 @@
|
||||
[![Backers on Open Collective](https://opencollective.com/git-bug/backers/badge.svg)](#backers)
|
||||
[![Sponsors on Open Collective](https://opencollective.com/git-bug/sponsors/badge.svg)](#sponsors)
|
||||
[![License: GPL v3](https://img.shields.io/badge/License-GPLv3+-blue.svg)](http://www.gnu.org/licenses/gpl-3.0)
|
||||
[![GoDoc](https://godoc.org/github.com/MichaelMure/git-bug?status.svg)](https://godoc.org/github.com/MichaelMure/git-bug)
|
||||
[![Go Report Card](https://goreportcard.com/badge/github.com/MichaelMure/git-bug)](https://goreportcard.com/report/github.com/MichaelMure/git-bug)
|
||||
[![GoDoc](https://godoc.org/github.com/git-bug/git-bug?status.svg)](https://godoc.org/github.com/git-bug/git-bug)
|
||||
[![Go Report Card](https://goreportcard.com/badge/github.com/git-bug/git-bug)](https://goreportcard.com/report/github.com/git-bug/git-bug)
|
||||
[![Gitter chat](https://badges.gitter.im/gitterHQ/gitter.png)](https://gitter.im/the-git-bug/Lobby)
|
||||
|
||||
</div>
|
||||
@ -38,7 +38,7 @@ Individually, those pieces are not especially complex but doing everything make
|
||||
|
||||
<details><summary>Pre-compiled binaries</summary>
|
||||
|
||||
1. Go to the [release page](https://github.com/MichaelMure/git-bug/releases/latest) and download the appropriate binary for your system.
|
||||
1. Go to the [release page](https://github.com/git-bug/git-bug/releases/latest) and download the appropriate binary for your system.
|
||||
2. Copy the binary anywhere in your $PATH
|
||||
3. Rename the binary to `git-bug` (or `git-bug.exe` on windows)
|
||||
|
||||
@ -88,7 +88,7 @@ Or from the ports collection
|
||||
<details><summary>Compile from git (unstable)</summary>
|
||||
|
||||
```shell
|
||||
git clone https://github.com/MichaelMure/git-bug.git
|
||||
git clone https://github.com/git-bug/git-bug.git
|
||||
cd git-bug
|
||||
make install
|
||||
```
|
||||
@ -110,7 +110,7 @@ There are multiple ways to use `git-bug`:
|
||||
<img src="misc/diagrams/native_workflow.png" alt="Native workflow">
|
||||
</p>
|
||||
|
||||
This is the pure `git-bug` experience. In a similar fashion as with code, use `git bug push` and `git bug pull` to push and pull your bugs between git remotes and collaborate with your teammate.
|
||||
This is the pure `git-bug` experience. In a similar fashion as with code, use `git bug push` and `git bug pull` to push and pull your bugs between git remotes and collaborate with your teammate.
|
||||
|
||||
</details>
|
||||
|
||||
@ -236,7 +236,7 @@ Or manually:
|
||||
git bug bridge new \
|
||||
--name=<bridge> \
|
||||
--target=github \
|
||||
--url=https://github.com/MichaelMure/git-bug \
|
||||
--url=https://github.com/git-bug/git-bug \
|
||||
--login=<login> \
|
||||
--token=<token>
|
||||
```
|
||||
@ -285,7 +285,7 @@ Additional planned feature:
|
||||
PRs accepted. Drop by the [Gitter lobby](https://gitter.im/the-git-bug/Lobby) or the [Matrix room](https://matrix.to/#/#the-git-bug_Lobby:gitter.im) for a chat, look at the [feature matrix](doc/feature_matrix.md) or browse the issues to see what is worked on or discussed.
|
||||
|
||||
```shell
|
||||
git clone git@github.com:MichaelMure/git-bug.git
|
||||
git clone git@github.com:git-bug/git-bug.git
|
||||
```
|
||||
|
||||
You can now run `make` to build the project, or `make install` to install the binary in `$GOPATH/bin/`.
|
||||
@ -303,7 +303,7 @@ go test ./commands -update
|
||||
## Contributors :heart:
|
||||
|
||||
This project exists thanks to all the people who contribute.
|
||||
<a href="https://github.com/MichaelMure/git-bug/graphs/contributors"><img src="https://opencollective.com/git-bug/contributors.svg?width=890&button=false" /></a>
|
||||
<a href="https://github.com/git-bug/git-bug/graphs/contributors"><img src="https://opencollective.com/git-bug/contributors.svg?width=890&button=false" /></a>
|
||||
|
||||
|
||||
## Backers
|
||||
|
@ -4,8 +4,8 @@ package auth
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/MichaelMure/git-bug/cache"
|
||||
"github.com/MichaelMure/git-bug/entity"
|
||||
"github.com/git-bug/git-bug/cache"
|
||||
"github.com/git-bug/git-bug/entity"
|
||||
)
|
||||
|
||||
// identityCtxKey is a unique context key, accessible only in this package.
|
||||
|
@ -3,7 +3,7 @@ package auth
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"github.com/MichaelMure/git-bug/entity"
|
||||
"github.com/git-bug/git-bug/entity"
|
||||
)
|
||||
|
||||
func Middleware(fixedUserId entity.Id) func(http.Handler) http.Handler {
|
||||
|
@ -5,7 +5,7 @@ import (
|
||||
|
||||
"github.com/cheekybits/genny/generic"
|
||||
|
||||
"github.com/MichaelMure/git-bug/api/graphql/models"
|
||||
"github.com/git-bug/git-bug/api/graphql/models"
|
||||
)
|
||||
|
||||
// Name define the name of the connection
|
||||
|
@ -1,6 +1,6 @@
|
||||
package connections
|
||||
|
||||
import "github.com/MichaelMure/git-bug/entity"
|
||||
import "github.com/git-bug/git-bug/entity"
|
||||
|
||||
// LazyBugEdge is a special relay edge used to implement a lazy loading connection
|
||||
type LazyBugEdge struct {
|
||||
|
@ -7,8 +7,8 @@ package connections
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/MichaelMure/git-bug/api/graphql/models"
|
||||
"github.com/MichaelMure/git-bug/entities/bug"
|
||||
"github.com/git-bug/git-bug/api/graphql/models"
|
||||
"github.com/git-bug/git-bug/entities/bug"
|
||||
)
|
||||
|
||||
// BugCommentEdgeMaker define a function that take a bug.Comment and an offset and
|
||||
|
@ -7,7 +7,7 @@ package connections
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/MichaelMure/git-bug/api/graphql/models"
|
||||
"github.com/git-bug/git-bug/api/graphql/models"
|
||||
)
|
||||
|
||||
// IdentityEdgeMaker define a function that take a models.IdentityWrapper and an offset and
|
||||
|
@ -7,8 +7,8 @@ package connections
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/MichaelMure/git-bug/api/graphql/models"
|
||||
"github.com/MichaelMure/git-bug/entities/bug"
|
||||
"github.com/git-bug/git-bug/api/graphql/models"
|
||||
"github.com/git-bug/git-bug/entities/bug"
|
||||
)
|
||||
|
||||
// BugLabelEdgeMaker define a function that take a bug.Label and an offset and
|
||||
|
@ -7,8 +7,8 @@ package connections
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/MichaelMure/git-bug/api/graphql/models"
|
||||
"github.com/MichaelMure/git-bug/entity"
|
||||
"github.com/git-bug/git-bug/api/graphql/models"
|
||||
"github.com/git-bug/git-bug/entity"
|
||||
)
|
||||
|
||||
// LazyBugEdgeMaker define a function that take a entity.Id and an offset and
|
||||
|
@ -7,8 +7,8 @@ package connections
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/MichaelMure/git-bug/api/graphql/models"
|
||||
"github.com/MichaelMure/git-bug/entity"
|
||||
"github.com/git-bug/git-bug/api/graphql/models"
|
||||
"github.com/git-bug/git-bug/entity"
|
||||
)
|
||||
|
||||
// LazyIdentityEdgeMaker define a function that take a entity.Id and an offset and
|
||||
|
@ -7,8 +7,8 @@ package connections
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/MichaelMure/git-bug/api/graphql/models"
|
||||
"github.com/MichaelMure/git-bug/entity/dag"
|
||||
"github.com/git-bug/git-bug/api/graphql/models"
|
||||
"github.com/git-bug/git-bug/entity/dag"
|
||||
)
|
||||
|
||||
// DagOperationEdgeMaker define a function that take a dag.Operation and an offset and
|
||||
|
@ -7,8 +7,8 @@ package connections
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/MichaelMure/git-bug/api/graphql/models"
|
||||
"github.com/MichaelMure/git-bug/entities/bug"
|
||||
"github.com/git-bug/git-bug/api/graphql/models"
|
||||
"github.com/git-bug/git-bug/entities/bug"
|
||||
)
|
||||
|
||||
// BugTimelineItemEdgeMaker define a function that take a bug.TimelineItem and an offset and
|
||||
|
@ -7,22 +7,22 @@ model:
|
||||
filename: models/gen_models.go
|
||||
|
||||
autobind:
|
||||
- "github.com/MichaelMure/git-bug/api/graphql/models"
|
||||
- "github.com/MichaelMure/git-bug/repository"
|
||||
- "github.com/MichaelMure/git-bug/entity"
|
||||
- "github.com/MichaelMure/git-bug/entity/dag"
|
||||
- "github.com/MichaelMure/git-bug/entities/common"
|
||||
- "github.com/MichaelMure/git-bug/entities/bug"
|
||||
- "github.com/MichaelMure/git-bug/entities/identity"
|
||||
- "github.com/git-bug/git-bug/api/graphql/models"
|
||||
- "github.com/git-bug/git-bug/repository"
|
||||
- "github.com/git-bug/git-bug/entity"
|
||||
- "github.com/git-bug/git-bug/entity/dag"
|
||||
- "github.com/git-bug/git-bug/entities/common"
|
||||
- "github.com/git-bug/git-bug/entities/bug"
|
||||
- "github.com/git-bug/git-bug/entities/identity"
|
||||
|
||||
omit_getters: true
|
||||
|
||||
models:
|
||||
ID:
|
||||
model: github.com/MichaelMure/git-bug/entity.Id
|
||||
model: github.com/git-bug/git-bug/entity.Id
|
||||
Color:
|
||||
model: image/color.RGBA
|
||||
Identity:
|
||||
model: github.com/MichaelMure/git-bug/api/graphql/models.IdentityWrapper
|
||||
model: github.com/git-bug/git-bug/api/graphql/models.IdentityWrapper
|
||||
Bug:
|
||||
model: github.com/MichaelMure/git-bug/api/graphql/models.BugWrapper
|
||||
model: github.com/git-bug/git-bug/api/graphql/models.BugWrapper
|
||||
|
@ -12,11 +12,11 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/99designs/gqlgen/graphql"
|
||||
"github.com/MichaelMure/git-bug/api/graphql/models"
|
||||
"github.com/MichaelMure/git-bug/entities/bug"
|
||||
"github.com/MichaelMure/git-bug/entities/common"
|
||||
"github.com/MichaelMure/git-bug/entity"
|
||||
"github.com/MichaelMure/git-bug/repository"
|
||||
"github.com/git-bug/git-bug/api/graphql/models"
|
||||
"github.com/git-bug/git-bug/entities/bug"
|
||||
"github.com/git-bug/git-bug/entities/common"
|
||||
"github.com/git-bug/git-bug/entity"
|
||||
"github.com/git-bug/git-bug/repository"
|
||||
"github.com/vektah/gqlparser/v2/ast"
|
||||
)
|
||||
|
||||
|
@ -11,8 +11,8 @@ import (
|
||||
"sync/atomic"
|
||||
|
||||
"github.com/99designs/gqlgen/graphql"
|
||||
"github.com/MichaelMure/git-bug/api/graphql/models"
|
||||
"github.com/MichaelMure/git-bug/entity"
|
||||
"github.com/git-bug/git-bug/api/graphql/models"
|
||||
"github.com/git-bug/git-bug/entity"
|
||||
"github.com/vektah/gqlparser/v2/ast"
|
||||
)
|
||||
|
||||
|
@ -12,8 +12,8 @@ import (
|
||||
"sync/atomic"
|
||||
|
||||
"github.com/99designs/gqlgen/graphql"
|
||||
"github.com/MichaelMure/git-bug/api/graphql/models"
|
||||
"github.com/MichaelMure/git-bug/entities/bug"
|
||||
"github.com/git-bug/git-bug/api/graphql/models"
|
||||
"github.com/git-bug/git-bug/entities/bug"
|
||||
"github.com/vektah/gqlparser/v2/ast"
|
||||
)
|
||||
|
||||
|
@ -11,8 +11,8 @@ import (
|
||||
"sync/atomic"
|
||||
|
||||
"github.com/99designs/gqlgen/graphql"
|
||||
"github.com/MichaelMure/git-bug/api/graphql/models"
|
||||
"github.com/MichaelMure/git-bug/entities/bug"
|
||||
"github.com/git-bug/git-bug/api/graphql/models"
|
||||
"github.com/git-bug/git-bug/entities/bug"
|
||||
"github.com/vektah/gqlparser/v2/ast"
|
||||
)
|
||||
|
||||
|
@ -12,12 +12,12 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/99designs/gqlgen/graphql"
|
||||
"github.com/MichaelMure/git-bug/api/graphql/models"
|
||||
"github.com/MichaelMure/git-bug/entities/bug"
|
||||
"github.com/MichaelMure/git-bug/entities/common"
|
||||
"github.com/MichaelMure/git-bug/entity"
|
||||
"github.com/MichaelMure/git-bug/entity/dag"
|
||||
"github.com/MichaelMure/git-bug/repository"
|
||||
"github.com/git-bug/git-bug/api/graphql/models"
|
||||
"github.com/git-bug/git-bug/entities/bug"
|
||||
"github.com/git-bug/git-bug/entities/common"
|
||||
"github.com/git-bug/git-bug/entity"
|
||||
"github.com/git-bug/git-bug/entity/dag"
|
||||
"github.com/git-bug/git-bug/repository"
|
||||
"github.com/vektah/gqlparser/v2/ast"
|
||||
)
|
||||
|
||||
|
@ -12,7 +12,7 @@ import (
|
||||
|
||||
"github.com/99designs/gqlgen/graphql"
|
||||
"github.com/99designs/gqlgen/graphql/introspection"
|
||||
"github.com/MichaelMure/git-bug/entity"
|
||||
"github.com/git-bug/git-bug/entity"
|
||||
"github.com/vektah/gqlparser/v2/ast"
|
||||
)
|
||||
|
||||
|
@ -10,7 +10,7 @@ import (
|
||||
"sync/atomic"
|
||||
|
||||
"github.com/99designs/gqlgen/graphql"
|
||||
"github.com/MichaelMure/git-bug/api/graphql/models"
|
||||
"github.com/git-bug/git-bug/api/graphql/models"
|
||||
"github.com/vektah/gqlparser/v2/ast"
|
||||
)
|
||||
|
||||
|
@ -10,7 +10,7 @@ import (
|
||||
|
||||
"github.com/99designs/gqlgen/graphql"
|
||||
"github.com/99designs/gqlgen/graphql/introspection"
|
||||
"github.com/MichaelMure/git-bug/api/graphql/models"
|
||||
"github.com/git-bug/git-bug/api/graphql/models"
|
||||
"github.com/vektah/gqlparser/v2/ast"
|
||||
)
|
||||
|
||||
|
@ -10,7 +10,7 @@ import (
|
||||
|
||||
"github.com/99designs/gqlgen/graphql"
|
||||
"github.com/99designs/gqlgen/graphql/introspection"
|
||||
"github.com/MichaelMure/git-bug/api/graphql/models"
|
||||
"github.com/git-bug/git-bug/api/graphql/models"
|
||||
gqlparser "github.com/vektah/gqlparser/v2"
|
||||
"github.com/vektah/gqlparser/v2/ast"
|
||||
)
|
||||
|
@ -12,11 +12,11 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/99designs/gqlgen/graphql"
|
||||
"github.com/MichaelMure/git-bug/api/graphql/models"
|
||||
"github.com/MichaelMure/git-bug/entities/bug"
|
||||
"github.com/MichaelMure/git-bug/entities/common"
|
||||
"github.com/MichaelMure/git-bug/entity"
|
||||
"github.com/MichaelMure/git-bug/repository"
|
||||
"github.com/git-bug/git-bug/api/graphql/models"
|
||||
"github.com/git-bug/git-bug/entities/bug"
|
||||
"github.com/git-bug/git-bug/entities/common"
|
||||
"github.com/git-bug/git-bug/entity"
|
||||
"github.com/git-bug/git-bug/repository"
|
||||
"github.com/vektah/gqlparser/v2/ast"
|
||||
)
|
||||
|
||||
|
@ -12,10 +12,10 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/99designs/gqlgen/graphql"
|
||||
"github.com/MichaelMure/git-bug/api/graphql/models"
|
||||
"github.com/MichaelMure/git-bug/entities/bug"
|
||||
"github.com/MichaelMure/git-bug/entity"
|
||||
"github.com/MichaelMure/git-bug/repository"
|
||||
"github.com/git-bug/git-bug/api/graphql/models"
|
||||
"github.com/git-bug/git-bug/entities/bug"
|
||||
"github.com/git-bug/git-bug/entity"
|
||||
"github.com/git-bug/git-bug/repository"
|
||||
"github.com/vektah/gqlparser/v2/ast"
|
||||
)
|
||||
|
||||
|
@ -7,10 +7,10 @@ import (
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/MichaelMure/git-bug/api/graphql/models"
|
||||
"github.com/MichaelMure/git-bug/cache"
|
||||
"github.com/MichaelMure/git-bug/misc/random_bugs"
|
||||
"github.com/MichaelMure/git-bug/repository"
|
||||
"github.com/git-bug/git-bug/api/graphql/models"
|
||||
"github.com/git-bug/git-bug/cache"
|
||||
"github.com/git-bug/git-bug/misc/random_bugs"
|
||||
"github.com/git-bug/git-bug/repository"
|
||||
)
|
||||
|
||||
func TestQueries(t *testing.T) {
|
||||
|
@ -9,9 +9,9 @@ import (
|
||||
|
||||
"github.com/99designs/gqlgen/graphql/handler"
|
||||
|
||||
"github.com/MichaelMure/git-bug/api/graphql/graph"
|
||||
"github.com/MichaelMure/git-bug/api/graphql/resolvers"
|
||||
"github.com/MichaelMure/git-bug/cache"
|
||||
"github.com/git-bug/git-bug/api/graphql/graph"
|
||||
"github.com/git-bug/git-bug/api/graphql/resolvers"
|
||||
"github.com/git-bug/git-bug/cache"
|
||||
)
|
||||
|
||||
// Handler is the root GraphQL http handler
|
||||
|
@ -3,9 +3,9 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
"github.com/MichaelMure/git-bug/entities/bug"
|
||||
"github.com/MichaelMure/git-bug/entity/dag"
|
||||
"github.com/MichaelMure/git-bug/repository"
|
||||
"github.com/git-bug/git-bug/entities/bug"
|
||||
"github.com/git-bug/git-bug/entity/dag"
|
||||
"github.com/git-bug/git-bug/repository"
|
||||
)
|
||||
|
||||
// An object that has an author.
|
||||
|
@ -4,11 +4,11 @@ import (
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/MichaelMure/git-bug/cache"
|
||||
"github.com/MichaelMure/git-bug/entities/bug"
|
||||
"github.com/MichaelMure/git-bug/entities/common"
|
||||
"github.com/MichaelMure/git-bug/entity"
|
||||
"github.com/MichaelMure/git-bug/entity/dag"
|
||||
"github.com/git-bug/git-bug/cache"
|
||||
"github.com/git-bug/git-bug/entities/bug"
|
||||
"github.com/git-bug/git-bug/entities/common"
|
||||
"github.com/git-bug/git-bug/entity"
|
||||
"github.com/git-bug/git-bug/entity/dag"
|
||||
)
|
||||
|
||||
// BugWrapper is an interface used by the GraphQL resolvers to handle a bug.
|
||||
|
@ -4,9 +4,9 @@ import (
|
||||
"fmt"
|
||||
"sync"
|
||||
|
||||
"github.com/MichaelMure/git-bug/cache"
|
||||
"github.com/MichaelMure/git-bug/entities/identity"
|
||||
"github.com/MichaelMure/git-bug/entity"
|
||||
"github.com/git-bug/git-bug/cache"
|
||||
"github.com/git-bug/git-bug/entities/identity"
|
||||
"github.com/git-bug/git-bug/entity"
|
||||
)
|
||||
|
||||
// IdentityWrapper is an interface used by the GraphQL resolvers to handle an identity.
|
||||
|
@ -2,7 +2,7 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
"github.com/MichaelMure/git-bug/cache"
|
||||
"github.com/git-bug/git-bug/cache"
|
||||
)
|
||||
|
||||
type ConnectionInput struct {
|
||||
|
@ -3,11 +3,11 @@ package resolvers
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/MichaelMure/git-bug/api/graphql/connections"
|
||||
"github.com/MichaelMure/git-bug/api/graphql/graph"
|
||||
"github.com/MichaelMure/git-bug/api/graphql/models"
|
||||
"github.com/MichaelMure/git-bug/entities/bug"
|
||||
"github.com/MichaelMure/git-bug/entity/dag"
|
||||
"github.com/git-bug/git-bug/api/graphql/connections"
|
||||
"github.com/git-bug/git-bug/api/graphql/graph"
|
||||
"github.com/git-bug/git-bug/api/graphql/models"
|
||||
"github.com/git-bug/git-bug/entities/bug"
|
||||
"github.com/git-bug/git-bug/entity/dag"
|
||||
)
|
||||
|
||||
var _ graph.BugResolver = &bugResolver{}
|
||||
|
@ -4,7 +4,7 @@ import (
|
||||
"context"
|
||||
"image/color"
|
||||
|
||||
"github.com/MichaelMure/git-bug/api/graphql/graph"
|
||||
"github.com/git-bug/git-bug/api/graphql/graph"
|
||||
)
|
||||
|
||||
var _ graph.ColorResolver = &colorResolver{}
|
||||
|
@ -3,10 +3,10 @@ package resolvers
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/MichaelMure/git-bug/api/graphql/graph"
|
||||
"github.com/MichaelMure/git-bug/api/graphql/models"
|
||||
"github.com/MichaelMure/git-bug/entities/bug"
|
||||
"github.com/MichaelMure/git-bug/entity"
|
||||
"github.com/git-bug/git-bug/api/graphql/graph"
|
||||
"github.com/git-bug/git-bug/api/graphql/models"
|
||||
"github.com/git-bug/git-bug/entities/bug"
|
||||
"github.com/git-bug/git-bug/entity"
|
||||
)
|
||||
|
||||
var _ graph.CommentResolver = &commentResolver{}
|
||||
|
@ -3,8 +3,8 @@ package resolvers
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/MichaelMure/git-bug/api/graphql/graph"
|
||||
"github.com/MichaelMure/git-bug/api/graphql/models"
|
||||
"github.com/git-bug/git-bug/api/graphql/graph"
|
||||
"github.com/git-bug/git-bug/api/graphql/models"
|
||||
)
|
||||
|
||||
var _ graph.IdentityResolver = &identityResolver{}
|
||||
|
@ -4,8 +4,8 @@ import (
|
||||
"context"
|
||||
"image/color"
|
||||
|
||||
"github.com/MichaelMure/git-bug/api/graphql/graph"
|
||||
"github.com/MichaelMure/git-bug/entities/bug"
|
||||
"github.com/git-bug/git-bug/api/graphql/graph"
|
||||
"github.com/git-bug/git-bug/entities/bug"
|
||||
)
|
||||
|
||||
var _ graph.LabelResolver = &labelResolver{}
|
||||
|
@ -4,12 +4,12 @@ import (
|
||||
"context"
|
||||
"time"
|
||||
|
||||
"github.com/MichaelMure/git-bug/api/auth"
|
||||
"github.com/MichaelMure/git-bug/api/graphql/graph"
|
||||
"github.com/MichaelMure/git-bug/api/graphql/models"
|
||||
"github.com/MichaelMure/git-bug/cache"
|
||||
"github.com/MichaelMure/git-bug/entities/bug"
|
||||
"github.com/MichaelMure/git-bug/util/text"
|
||||
"github.com/git-bug/git-bug/api/auth"
|
||||
"github.com/git-bug/git-bug/api/graphql/graph"
|
||||
"github.com/git-bug/git-bug/api/graphql/models"
|
||||
"github.com/git-bug/git-bug/cache"
|
||||
"github.com/git-bug/git-bug/entities/bug"
|
||||
"github.com/git-bug/git-bug/util/text"
|
||||
)
|
||||
|
||||
var _ graph.MutationResolver = &mutationResolver{}
|
||||
|
@ -4,9 +4,9 @@ import (
|
||||
"context"
|
||||
"time"
|
||||
|
||||
"github.com/MichaelMure/git-bug/api/graphql/graph"
|
||||
"github.com/MichaelMure/git-bug/api/graphql/models"
|
||||
"github.com/MichaelMure/git-bug/entities/bug"
|
||||
"github.com/git-bug/git-bug/api/graphql/graph"
|
||||
"github.com/git-bug/git-bug/api/graphql/models"
|
||||
"github.com/git-bug/git-bug/entities/bug"
|
||||
)
|
||||
|
||||
var _ graph.CreateOperationResolver = createOperationResolver{}
|
||||
|
@ -3,9 +3,9 @@ package resolvers
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/MichaelMure/git-bug/api/graphql/graph"
|
||||
"github.com/MichaelMure/git-bug/api/graphql/models"
|
||||
"github.com/MichaelMure/git-bug/cache"
|
||||
"github.com/git-bug/git-bug/api/graphql/graph"
|
||||
"github.com/git-bug/git-bug/api/graphql/models"
|
||||
"github.com/git-bug/git-bug/cache"
|
||||
)
|
||||
|
||||
var _ graph.QueryResolver = &rootQueryResolver{}
|
||||
|
@ -3,13 +3,13 @@ package resolvers
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/MichaelMure/git-bug/api/auth"
|
||||
"github.com/MichaelMure/git-bug/api/graphql/connections"
|
||||
"github.com/MichaelMure/git-bug/api/graphql/graph"
|
||||
"github.com/MichaelMure/git-bug/api/graphql/models"
|
||||
"github.com/MichaelMure/git-bug/entities/bug"
|
||||
"github.com/MichaelMure/git-bug/entity"
|
||||
"github.com/MichaelMure/git-bug/query"
|
||||
"github.com/git-bug/git-bug/api/auth"
|
||||
"github.com/git-bug/git-bug/api/graphql/connections"
|
||||
"github.com/git-bug/git-bug/api/graphql/graph"
|
||||
"github.com/git-bug/git-bug/api/graphql/models"
|
||||
"github.com/git-bug/git-bug/entities/bug"
|
||||
"github.com/git-bug/git-bug/entity"
|
||||
"github.com/git-bug/git-bug/query"
|
||||
)
|
||||
|
||||
var _ graph.RepositoryResolver = &repoResolver{}
|
||||
|
@ -2,8 +2,8 @@
|
||||
package resolvers
|
||||
|
||||
import (
|
||||
"github.com/MichaelMure/git-bug/api/graphql/graph"
|
||||
"github.com/MichaelMure/git-bug/cache"
|
||||
"github.com/git-bug/git-bug/api/graphql/graph"
|
||||
"github.com/git-bug/git-bug/cache"
|
||||
)
|
||||
|
||||
var _ graph.ResolverRoot = &RootResolver{}
|
||||
|
@ -4,10 +4,10 @@ import (
|
||||
"context"
|
||||
"time"
|
||||
|
||||
"github.com/MichaelMure/git-bug/api/graphql/graph"
|
||||
"github.com/MichaelMure/git-bug/api/graphql/models"
|
||||
"github.com/MichaelMure/git-bug/entities/bug"
|
||||
"github.com/MichaelMure/git-bug/entity"
|
||||
"github.com/git-bug/git-bug/api/graphql/graph"
|
||||
"github.com/git-bug/git-bug/api/graphql/models"
|
||||
"github.com/git-bug/git-bug/entities/bug"
|
||||
"github.com/git-bug/git-bug/entity"
|
||||
)
|
||||
|
||||
var _ graph.CommentHistoryStepResolver = commentHistoryStepResolver{}
|
||||
|
@ -9,7 +9,7 @@ import (
|
||||
|
||||
"github.com/99designs/gqlgen/graphql"
|
||||
|
||||
"github.com/MichaelMure/git-bug/util/colors"
|
||||
"github.com/git-bug/git-bug/util/colors"
|
||||
)
|
||||
|
||||
// adapted from https://github.com/99designs/gqlgen/blob/master/graphql/handler/debug/tracer.go
|
||||
|
@ -7,8 +7,8 @@ import (
|
||||
|
||||
"github.com/gorilla/mux"
|
||||
|
||||
"github.com/MichaelMure/git-bug/cache"
|
||||
"github.com/MichaelMure/git-bug/repository"
|
||||
"github.com/git-bug/git-bug/cache"
|
||||
"github.com/git-bug/git-bug/repository"
|
||||
)
|
||||
|
||||
// implement a http.Handler that will read and server git blob.
|
||||
|
@ -13,9 +13,9 @@ import (
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/MichaelMure/git-bug/api/auth"
|
||||
"github.com/MichaelMure/git-bug/cache"
|
||||
"github.com/MichaelMure/git-bug/repository"
|
||||
"github.com/git-bug/git-bug/api/auth"
|
||||
"github.com/git-bug/git-bug/cache"
|
||||
"github.com/git-bug/git-bug/repository"
|
||||
)
|
||||
|
||||
func TestGitFileHandlers(t *testing.T) {
|
||||
|
@ -8,8 +8,8 @@ import (
|
||||
|
||||
"github.com/gorilla/mux"
|
||||
|
||||
"github.com/MichaelMure/git-bug/api/auth"
|
||||
"github.com/MichaelMure/git-bug/cache"
|
||||
"github.com/git-bug/git-bug/api/auth"
|
||||
"github.com/git-bug/git-bug/cache"
|
||||
)
|
||||
|
||||
// implement a http.Handler that will accept and store content into git blob.
|
||||
|
@ -2,13 +2,13 @@
|
||||
package bridge
|
||||
|
||||
import (
|
||||
"github.com/MichaelMure/git-bug/bridge/core"
|
||||
"github.com/MichaelMure/git-bug/bridge/github"
|
||||
"github.com/MichaelMure/git-bug/bridge/gitlab"
|
||||
"github.com/MichaelMure/git-bug/bridge/jira"
|
||||
"github.com/MichaelMure/git-bug/bridge/launchpad"
|
||||
"github.com/MichaelMure/git-bug/cache"
|
||||
"github.com/MichaelMure/git-bug/repository"
|
||||
"github.com/git-bug/git-bug/bridge/core"
|
||||
"github.com/git-bug/git-bug/bridge/github"
|
||||
"github.com/git-bug/git-bug/bridge/gitlab"
|
||||
"github.com/git-bug/git-bug/bridge/jira"
|
||||
"github.com/git-bug/git-bug/bridge/launchpad"
|
||||
"github.com/git-bug/git-bug/cache"
|
||||
"github.com/git-bug/git-bug/repository"
|
||||
)
|
||||
|
||||
func init() {
|
||||
|
@ -10,8 +10,8 @@ import (
|
||||
|
||||
"github.com/pkg/errors"
|
||||
|
||||
"github.com/MichaelMure/git-bug/entity"
|
||||
"github.com/MichaelMure/git-bug/repository"
|
||||
"github.com/git-bug/git-bug/entity"
|
||||
"github.com/git-bug/git-bug/repository"
|
||||
)
|
||||
|
||||
const (
|
||||
|
@ -7,8 +7,8 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/MichaelMure/git-bug/bridge/core"
|
||||
"github.com/MichaelMure/git-bug/repository"
|
||||
"github.com/git-bug/git-bug/bridge/core"
|
||||
"github.com/git-bug/git-bug/repository"
|
||||
)
|
||||
|
||||
type credentialBase struct {
|
||||
|
@ -6,8 +6,8 @@ import (
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/MichaelMure/git-bug/entity"
|
||||
"github.com/MichaelMure/git-bug/repository"
|
||||
"github.com/git-bug/git-bug/entity"
|
||||
"github.com/git-bug/git-bug/repository"
|
||||
)
|
||||
|
||||
func TestCredential(t *testing.T) {
|
||||
|
@ -4,7 +4,7 @@ import (
|
||||
"crypto/sha256"
|
||||
"fmt"
|
||||
|
||||
"github.com/MichaelMure/git-bug/entity"
|
||||
"github.com/git-bug/git-bug/entity"
|
||||
)
|
||||
|
||||
const (
|
||||
|
@ -4,7 +4,7 @@ import (
|
||||
"crypto/sha256"
|
||||
"fmt"
|
||||
|
||||
"github.com/MichaelMure/git-bug/entity"
|
||||
"github.com/git-bug/git-bug/entity"
|
||||
)
|
||||
|
||||
const (
|
||||
|
@ -4,7 +4,7 @@ import (
|
||||
"crypto/sha256"
|
||||
"fmt"
|
||||
|
||||
"github.com/MichaelMure/git-bug/entity"
|
||||
"github.com/git-bug/git-bug/entity"
|
||||
)
|
||||
|
||||
const (
|
||||
|
@ -13,8 +13,8 @@ import (
|
||||
|
||||
"github.com/pkg/errors"
|
||||
|
||||
"github.com/MichaelMure/git-bug/cache"
|
||||
"github.com/MichaelMure/git-bug/repository"
|
||||
"github.com/git-bug/git-bug/cache"
|
||||
"github.com/git-bug/git-bug/repository"
|
||||
)
|
||||
|
||||
var ErrImportNotSupported = errors.New("import is not supported")
|
||||
|
@ -3,9 +3,9 @@ package core
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/MichaelMure/git-bug/cache"
|
||||
"github.com/MichaelMure/git-bug/entities/identity"
|
||||
"github.com/MichaelMure/git-bug/entity"
|
||||
"github.com/git-bug/git-bug/cache"
|
||||
"github.com/git-bug/git-bug/entities/identity"
|
||||
"github.com/git-bug/git-bug/entity"
|
||||
)
|
||||
|
||||
func FinishConfig(repo *cache.RepoCache, metaKey string, login string) error {
|
||||
|
@ -3,7 +3,7 @@ package core
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/MichaelMure/git-bug/entity"
|
||||
"github.com/git-bug/git-bug/entity"
|
||||
)
|
||||
|
||||
type ExportEvent int
|
||||
|
@ -4,7 +4,7 @@ import (
|
||||
"fmt"
|
||||
"strings"
|
||||
|
||||
"github.com/MichaelMure/git-bug/entity"
|
||||
"github.com/git-bug/git-bug/entity"
|
||||
)
|
||||
|
||||
type ImportEvent int
|
||||
|
@ -4,7 +4,7 @@ import (
|
||||
"context"
|
||||
"time"
|
||||
|
||||
"github.com/MichaelMure/git-bug/cache"
|
||||
"github.com/git-bug/git-bug/cache"
|
||||
)
|
||||
|
||||
type Configuration map[string]string
|
||||
|
@ -9,7 +9,7 @@ import (
|
||||
|
||||
"github.com/shurcooL/githubv4"
|
||||
|
||||
"github.com/MichaelMure/git-bug/bridge/core"
|
||||
"github.com/git-bug/git-bug/bridge/core"
|
||||
)
|
||||
|
||||
var _ Client = &githubv4.Client{}
|
||||
|
@ -15,11 +15,11 @@ import (
|
||||
|
||||
"github.com/pkg/errors"
|
||||
|
||||
"github.com/MichaelMure/git-bug/bridge/core"
|
||||
"github.com/MichaelMure/git-bug/bridge/core/auth"
|
||||
"github.com/MichaelMure/git-bug/cache"
|
||||
"github.com/MichaelMure/git-bug/commands/input"
|
||||
"github.com/MichaelMure/git-bug/repository"
|
||||
"github.com/git-bug/git-bug/bridge/core"
|
||||
"github.com/git-bug/git-bug/bridge/core/auth"
|
||||
"github.com/git-bug/git-bug/cache"
|
||||
"github.com/git-bug/git-bug/commands/input"
|
||||
"github.com/git-bug/git-bug/repository"
|
||||
)
|
||||
|
||||
const githubClientID = "ce3600aa56c2e69f18a5" // git-bug org
|
||||
|
@ -6,7 +6,7 @@ import (
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
|
||||
"github.com/MichaelMure/git-bug/bridge/core/auth"
|
||||
"github.com/git-bug/git-bug/bridge/core/auth"
|
||||
)
|
||||
|
||||
func TestSplitURL(t *testing.T) {
|
||||
@ -26,10 +26,10 @@ func TestSplitURL(t *testing.T) {
|
||||
{
|
||||
name: "default url",
|
||||
args: args{
|
||||
url: "https://github.com/MichaelMure/git-bug",
|
||||
url: "https://github.com/git-bug/git-bug",
|
||||
},
|
||||
want: want{
|
||||
owner: "MichaelMure",
|
||||
owner: "git-bug",
|
||||
project: "git-bug",
|
||||
err: nil,
|
||||
},
|
||||
@ -37,10 +37,10 @@ func TestSplitURL(t *testing.T) {
|
||||
{
|
||||
name: "default issues url",
|
||||
args: args{
|
||||
url: "https://github.com/MichaelMure/git-bug/issues",
|
||||
url: "https://github.com/git-bug/git-bug/issues",
|
||||
},
|
||||
want: want{
|
||||
owner: "MichaelMure",
|
||||
owner: "git-bug",
|
||||
project: "git-bug",
|
||||
err: nil,
|
||||
},
|
||||
@ -48,10 +48,10 @@ func TestSplitURL(t *testing.T) {
|
||||
{
|
||||
name: "default url with git extension",
|
||||
args: args{
|
||||
url: "https://github.com/MichaelMure/git-bug.git",
|
||||
url: "https://github.com/git-bug/git-bug.git",
|
||||
},
|
||||
want: want{
|
||||
owner: "MichaelMure",
|
||||
owner: "git-bug",
|
||||
project: "git-bug",
|
||||
err: nil,
|
||||
},
|
||||
@ -59,10 +59,10 @@ func TestSplitURL(t *testing.T) {
|
||||
{
|
||||
name: "url with git protocol",
|
||||
args: args{
|
||||
url: "git://github.com/MichaelMure/git-bug.git",
|
||||
url: "git://github.com/git-bug/git-bug.git",
|
||||
},
|
||||
want: want{
|
||||
owner: "MichaelMure",
|
||||
owner: "git-bug",
|
||||
project: "git-bug",
|
||||
err: nil,
|
||||
},
|
||||
@ -70,10 +70,10 @@ func TestSplitURL(t *testing.T) {
|
||||
{
|
||||
name: "ssh url",
|
||||
args: args{
|
||||
url: "git@github.com:MichaelMure/git-bug.git",
|
||||
url: "git@github.com:git-bug/git-bug.git",
|
||||
},
|
||||
want: want{
|
||||
owner: "MichaelMure",
|
||||
owner: "git-bug",
|
||||
project: "git-bug",
|
||||
err: nil,
|
||||
},
|
||||
@ -81,7 +81,7 @@ func TestSplitURL(t *testing.T) {
|
||||
{
|
||||
name: "bad url",
|
||||
args: args{
|
||||
url: "https://githb.com/MichaelMure/git-bug.git",
|
||||
url: "https://githb.com/git-bug/git-bug.git",
|
||||
},
|
||||
want: want{
|
||||
err: ErrBadProjectURL,
|
||||
@ -115,26 +115,26 @@ func TestValidateUsername(t *testing.T) {
|
||||
}{
|
||||
{
|
||||
name: "existing username",
|
||||
input: "MichaelMure",
|
||||
fixed: "MichaelMure",
|
||||
input: "git-bug",
|
||||
fixed: "git-bug",
|
||||
ok: true,
|
||||
},
|
||||
{
|
||||
name: "existing username with bad case",
|
||||
input: "MicHaelmurE",
|
||||
fixed: "MichaelMure",
|
||||
input: "GiT-bUg",
|
||||
fixed: "git-bug",
|
||||
ok: true,
|
||||
},
|
||||
{
|
||||
name: "existing organisation",
|
||||
input: "ipfs",
|
||||
fixed: "ipfs",
|
||||
input: "git-bug",
|
||||
fixed: "git-bug",
|
||||
ok: true,
|
||||
},
|
||||
{
|
||||
name: "existing organisation with bad case",
|
||||
input: "iPfS",
|
||||
fixed: "ipfs",
|
||||
input: "gIt-BuG",
|
||||
fixed: "git-bug",
|
||||
ok: true,
|
||||
},
|
||||
{
|
||||
@ -183,7 +183,7 @@ func TestValidateProject(t *testing.T) {
|
||||
name: "public repository and token with scope 'public_repo'",
|
||||
args: args{
|
||||
project: "git-bug",
|
||||
owner: "MichaelMure",
|
||||
owner: "git-bug",
|
||||
token: tokenPublic,
|
||||
},
|
||||
want: true,
|
||||
@ -192,7 +192,7 @@ func TestValidateProject(t *testing.T) {
|
||||
name: "private repository and token with scope 'repo'",
|
||||
args: args{
|
||||
project: "git-bug-test-github-bridge",
|
||||
owner: "MichaelMure",
|
||||
owner: "git-bug",
|
||||
token: tokenPrivate,
|
||||
},
|
||||
want: true,
|
||||
@ -201,7 +201,7 @@ func TestValidateProject(t *testing.T) {
|
||||
name: "private repository and token with scope 'public_repo'",
|
||||
args: args{
|
||||
project: "git-bug-test-github-bridge",
|
||||
owner: "MichaelMure",
|
||||
owner: "git-bug",
|
||||
token: tokenPublic,
|
||||
},
|
||||
want: false,
|
||||
|
@ -15,13 +15,13 @@ import (
|
||||
"github.com/shurcooL/githubv4"
|
||||
"golang.org/x/sync/errgroup"
|
||||
|
||||
"github.com/MichaelMure/git-bug/bridge/core"
|
||||
"github.com/MichaelMure/git-bug/bridge/core/auth"
|
||||
"github.com/MichaelMure/git-bug/cache"
|
||||
"github.com/MichaelMure/git-bug/entities/bug"
|
||||
"github.com/MichaelMure/git-bug/entities/common"
|
||||
"github.com/MichaelMure/git-bug/entity"
|
||||
"github.com/MichaelMure/git-bug/entity/dag"
|
||||
"github.com/git-bug/git-bug/bridge/core"
|
||||
"github.com/git-bug/git-bug/bridge/core/auth"
|
||||
"github.com/git-bug/git-bug/cache"
|
||||
"github.com/git-bug/git-bug/entities/bug"
|
||||
"github.com/git-bug/git-bug/entities/common"
|
||||
"github.com/git-bug/git-bug/entity"
|
||||
"github.com/git-bug/git-bug/entity/dag"
|
||||
)
|
||||
|
||||
var (
|
||||
|
@ -13,13 +13,13 @@ import (
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/MichaelMure/git-bug/bridge/core"
|
||||
"github.com/MichaelMure/git-bug/bridge/core/auth"
|
||||
"github.com/MichaelMure/git-bug/cache"
|
||||
"github.com/MichaelMure/git-bug/entity"
|
||||
"github.com/MichaelMure/git-bug/entity/dag"
|
||||
"github.com/MichaelMure/git-bug/repository"
|
||||
"github.com/MichaelMure/git-bug/util/interrupt"
|
||||
"github.com/git-bug/git-bug/bridge/core"
|
||||
"github.com/git-bug/git-bug/bridge/core/auth"
|
||||
"github.com/git-bug/git-bug/cache"
|
||||
"github.com/git-bug/git-bug/entity"
|
||||
"github.com/git-bug/git-bug/entity/dag"
|
||||
"github.com/git-bug/git-bug/repository"
|
||||
"github.com/git-bug/git-bug/util/interrupt"
|
||||
)
|
||||
|
||||
const (
|
||||
|
@ -7,8 +7,8 @@ import (
|
||||
|
||||
"golang.org/x/oauth2"
|
||||
|
||||
"github.com/MichaelMure/git-bug/bridge/core"
|
||||
"github.com/MichaelMure/git-bug/bridge/core/auth"
|
||||
"github.com/git-bug/git-bug/bridge/core"
|
||||
"github.com/git-bug/git-bug/bridge/core/auth"
|
||||
)
|
||||
|
||||
const (
|
||||
|
@ -7,11 +7,11 @@ import (
|
||||
|
||||
"github.com/shurcooL/githubv4"
|
||||
|
||||
"github.com/MichaelMure/git-bug/bridge/core"
|
||||
"github.com/MichaelMure/git-bug/bridge/core/auth"
|
||||
"github.com/MichaelMure/git-bug/cache"
|
||||
"github.com/MichaelMure/git-bug/entity"
|
||||
"github.com/MichaelMure/git-bug/util/text"
|
||||
"github.com/git-bug/git-bug/bridge/core"
|
||||
"github.com/git-bug/git-bug/bridge/core/auth"
|
||||
"github.com/git-bug/git-bug/cache"
|
||||
"github.com/git-bug/git-bug/entity"
|
||||
"github.com/git-bug/git-bug/util/text"
|
||||
)
|
||||
|
||||
const EmptyTitlePlaceholder = "<empty string>"
|
||||
|
@ -11,11 +11,11 @@ import (
|
||||
m "github.com/stretchr/testify/mock"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/MichaelMure/git-bug/bridge/github/mocks"
|
||||
"github.com/MichaelMure/git-bug/cache"
|
||||
"github.com/MichaelMure/git-bug/entities/bug"
|
||||
"github.com/MichaelMure/git-bug/repository"
|
||||
"github.com/MichaelMure/git-bug/util/interrupt"
|
||||
"github.com/git-bug/git-bug/bridge/github/mocks"
|
||||
"github.com/git-bug/git-bug/cache"
|
||||
"github.com/git-bug/git-bug/entities/bug"
|
||||
"github.com/git-bug/git-bug/repository"
|
||||
"github.com/git-bug/git-bug/util/interrupt"
|
||||
)
|
||||
|
||||
// using testify/mock and mockery
|
||||
|
@ -4,20 +4,21 @@ import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
"strings"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/MichaelMure/git-bug/bridge/core"
|
||||
"github.com/MichaelMure/git-bug/bridge/core/auth"
|
||||
"github.com/MichaelMure/git-bug/cache"
|
||||
"github.com/MichaelMure/git-bug/entities/bug"
|
||||
"github.com/MichaelMure/git-bug/entities/common"
|
||||
"github.com/MichaelMure/git-bug/entities/identity"
|
||||
"github.com/MichaelMure/git-bug/entity/dag"
|
||||
"github.com/MichaelMure/git-bug/repository"
|
||||
"github.com/MichaelMure/git-bug/util/interrupt"
|
||||
"github.com/git-bug/git-bug/bridge/core"
|
||||
"github.com/git-bug/git-bug/bridge/core/auth"
|
||||
"github.com/git-bug/git-bug/cache"
|
||||
"github.com/git-bug/git-bug/entities/bug"
|
||||
"github.com/git-bug/git-bug/entities/common"
|
||||
"github.com/git-bug/git-bug/entities/identity"
|
||||
"github.com/git-bug/git-bug/entity/dag"
|
||||
"github.com/git-bug/git-bug/repository"
|
||||
"github.com/git-bug/git-bug/util/interrupt"
|
||||
)
|
||||
|
||||
func TestGithubImporter(t *testing.T) {
|
||||
@ -34,7 +35,10 @@ func TestGithubImporter(t *testing.T) {
|
||||
defer backend.Close()
|
||||
interrupt.RegisterCleaner(backend.Close)
|
||||
|
||||
author, err := identity.NewIdentity(repo, "Michael Muré", "batolettre@gmail.com")
|
||||
author, err := identity.NewIdentity(repo, "Michael Muré", "no-reply@git-bug.test")
|
||||
require.NoError(t, err)
|
||||
|
||||
complexIssueEditAuthor, err := identity.NewIdentity(repo, "sudoforge", "no-reply@git-bug.test")
|
||||
require.NoError(t, err)
|
||||
|
||||
tests := []struct {
|
||||
@ -44,7 +48,7 @@ func TestGithubImporter(t *testing.T) {
|
||||
}{
|
||||
{
|
||||
name: "simple issue",
|
||||
url: "https://github.com/MichaelMure/git-bug-test-github-bridge/issues/1",
|
||||
url: "https://github.com/git-bug/git-bug-test-github-bridge/issues/1",
|
||||
bug: &bug.Snapshot{
|
||||
Operations: []dag.Operation{
|
||||
bug.NewCreateOp(author, 0, "simple issue", "initial comment", nil),
|
||||
@ -55,7 +59,7 @@ func TestGithubImporter(t *testing.T) {
|
||||
},
|
||||
{
|
||||
name: "empty issue",
|
||||
url: "https://github.com/MichaelMure/git-bug-test-github-bridge/issues/2",
|
||||
url: "https://github.com/git-bug/git-bug-test-github-bridge/issues/2",
|
||||
bug: &bug.Snapshot{
|
||||
Operations: []dag.Operation{
|
||||
bug.NewCreateOp(author, 0, "empty issue", "", nil),
|
||||
@ -64,14 +68,41 @@ func TestGithubImporter(t *testing.T) {
|
||||
},
|
||||
{
|
||||
name: "complex issue",
|
||||
url: "https://github.com/MichaelMure/git-bug-test-github-bridge/issues/3",
|
||||
url: "https://github.com/git-bug/git-bug-test-github-bridge/issues/3",
|
||||
bug: &bug.Snapshot{
|
||||
Operations: []dag.Operation{
|
||||
bug.NewCreateOp(author, 0, "complex issue", "initial comment", nil),
|
||||
bug.NewLabelChangeOperation(author, 0, []bug.Label{"bug"}, []bug.Label{}),
|
||||
bug.NewLabelChangeOperation(author, 0, []bug.Label{"duplicate"}, []bug.Label{}),
|
||||
bug.NewLabelChangeOperation(author, 0, []bug.Label{}, []bug.Label{"duplicate"}),
|
||||
bug.NewAddCommentOp(author, 0, "### header\n\n**bold**\n\n_italic_\n\n> with quote\n\n`inline code`\n\n```\nmultiline code\n```\n\n- bulleted\n- list\n\n1. numbered\n1. list\n\n- [ ] task\n- [x] list\n\n@MichaelMure mention\n\n#2 reference issue\n#3 auto-reference issue\n\n![image](https://user-images.githubusercontent.com/294669/56870222-811faf80-6a0c-11e9-8f2c-f0beb686303f.png)", nil),
|
||||
bug.NewAddCommentOp(author, 0, strings.Join([]string{
|
||||
"### header",
|
||||
"**bold**",
|
||||
"_italic_",
|
||||
"> with quote",
|
||||
"`inline code`",
|
||||
"```\nmultiline code\n```",
|
||||
"- bulleted\n- list",
|
||||
"1. numbered\n1. list",
|
||||
"- [ ] task\n- [x] list",
|
||||
"@MichaelMure mention",
|
||||
"#2 reference issue\n#3 auto-reference issue",
|
||||
"![image](https://user-images.githubusercontent.com/294669/56870222-811faf80-6a0c-11e9-8f2c-f0beb686303f.png)",
|
||||
}, "\n\n"), nil),
|
||||
bug.NewEditCommentOp(complexIssueEditAuthor, 0, "", strings.Join([]string{
|
||||
"### header",
|
||||
"**bold**",
|
||||
"_italic_",
|
||||
"> with quote",
|
||||
"`inline code`",
|
||||
"```\nmultiline code\n```",
|
||||
"- bulleted\n- list",
|
||||
"1. numbered\n1. list",
|
||||
"- [ ] task\n- [x] list",
|
||||
"@git-bug/maintainers mention",
|
||||
"#2 reference issue\n#3 auto-reference issue",
|
||||
"![image](https://user-images.githubusercontent.com/294669/56870222-811faf80-6a0c-11e9-8f2c-f0beb686303f.png)",
|
||||
}, "\n\n"), nil),
|
||||
bug.NewSetTitleOp(author, 0, "complex issue edited", "complex issue"),
|
||||
bug.NewSetTitleOp(author, 0, "complex issue", "complex issue edited"),
|
||||
bug.NewSetStatusOp(author, 0, common.ClosedStatus),
|
||||
@ -81,7 +112,7 @@ func TestGithubImporter(t *testing.T) {
|
||||
},
|
||||
{
|
||||
name: "editions",
|
||||
url: "https://github.com/MichaelMure/git-bug-test-github-bridge/issues/4",
|
||||
url: "https://github.com/git-bug/git-bug-test-github-bridge/issues/4",
|
||||
bug: &bug.Snapshot{
|
||||
Operations: []dag.Operation{
|
||||
bug.NewCreateOp(author, 0, "editions", "initial comment edited", nil),
|
||||
@ -93,7 +124,7 @@ func TestGithubImporter(t *testing.T) {
|
||||
},
|
||||
{
|
||||
name: "comment deletion",
|
||||
url: "https://github.com/MichaelMure/git-bug-test-github-bridge/issues/5",
|
||||
url: "https://github.com/git-bug/git-bug-test-github-bridge/issues/5",
|
||||
bug: &bug.Snapshot{
|
||||
Operations: []dag.Operation{
|
||||
bug.NewCreateOp(author, 0, "comment deletion", "", nil),
|
||||
@ -102,7 +133,7 @@ func TestGithubImporter(t *testing.T) {
|
||||
},
|
||||
{
|
||||
name: "edition deletion",
|
||||
url: "https://github.com/MichaelMure/git-bug-test-github-bridge/issues/6",
|
||||
url: "https://github.com/git-bug/git-bug-test-github-bridge/issues/6",
|
||||
bug: &bug.Snapshot{
|
||||
Operations: []dag.Operation{
|
||||
bug.NewCreateOp(author, 0, "edition deletion", "initial comment", nil),
|
||||
@ -114,7 +145,7 @@ func TestGithubImporter(t *testing.T) {
|
||||
},
|
||||
{
|
||||
name: "hidden comment",
|
||||
url: "https://github.com/MichaelMure/git-bug-test-github-bridge/issues/7",
|
||||
url: "https://github.com/git-bug/git-bug-test-github-bridge/issues/7",
|
||||
bug: &bug.Snapshot{
|
||||
Operations: []dag.Operation{
|
||||
bug.NewCreateOp(author, 0, "hidden comment", "initial comment", nil),
|
||||
@ -124,7 +155,7 @@ func TestGithubImporter(t *testing.T) {
|
||||
},
|
||||
{
|
||||
name: "transferred issue",
|
||||
url: "https://github.com/MichaelMure/git-bug-test-github-bridge/issues/8",
|
||||
url: "https://github.com/git-bug/git-bug-test-github-bridge/issues/8",
|
||||
bug: &bug.Snapshot{
|
||||
Operations: []dag.Operation{
|
||||
bug.NewCreateOp(author, 0, "transfered issue", "", nil),
|
||||
@ -133,7 +164,7 @@ func TestGithubImporter(t *testing.T) {
|
||||
},
|
||||
{
|
||||
name: "unicode control characters",
|
||||
url: "https://github.com/MichaelMure/git-bug-test-github-bridge/issues/10",
|
||||
url: "https://github.com/git-bug/git-bug-test-github-bridge/issues/10",
|
||||
bug: &bug.Snapshot{
|
||||
Operations: []dag.Operation{
|
||||
bug.NewCreateOp(author, 0, "unicode control characters", "u0000: \nu0001: \nu0002: \nu0003: \nu0004: \nu0005: \nu0006: \nu0007: \nu0008: \nu0009: \t\nu0010: \nu0011: \nu0012: \nu0013: \nu0014: \nu0015: \nu0016: \nu0017: \nu0018: \nu0019:", nil),
|
||||
@ -154,7 +185,7 @@ func TestGithubImporter(t *testing.T) {
|
||||
|
||||
importer := &githubImporter{}
|
||||
err = importer.Init(ctx, backend, core.Configuration{
|
||||
confKeyOwner: "MichaelMure",
|
||||
confKeyOwner: "git-bug",
|
||||
confKeyProject: "git-bug-test-github-bridge",
|
||||
confKeyDefaultLogin: login,
|
||||
})
|
||||
|
@ -10,11 +10,11 @@ import (
|
||||
"github.com/pkg/errors"
|
||||
"github.com/xanzy/go-gitlab"
|
||||
|
||||
"github.com/MichaelMure/git-bug/bridge/core"
|
||||
"github.com/MichaelMure/git-bug/bridge/core/auth"
|
||||
"github.com/MichaelMure/git-bug/cache"
|
||||
"github.com/MichaelMure/git-bug/commands/input"
|
||||
"github.com/MichaelMure/git-bug/repository"
|
||||
"github.com/git-bug/git-bug/bridge/core"
|
||||
"github.com/git-bug/git-bug/bridge/core/auth"
|
||||
"github.com/git-bug/git-bug/cache"
|
||||
"github.com/git-bug/git-bug/commands/input"
|
||||
"github.com/git-bug/git-bug/repository"
|
||||
)
|
||||
|
||||
var (
|
||||
|
@ -22,57 +22,57 @@ func TestProjectPath(t *testing.T) {
|
||||
{
|
||||
name: "default url",
|
||||
args: args{
|
||||
url: "https://gitlab.com/MichaelMure/git-bug",
|
||||
url: "https://gitlab.com/git-bug/git-bug",
|
||||
},
|
||||
want: want{
|
||||
path: "MichaelMure/git-bug",
|
||||
path: "git-bug/git-bug",
|
||||
err: nil,
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "multiple sub groups",
|
||||
args: args{
|
||||
url: "https://gitlab.com/MichaelMure/group/subgroup/git-bug",
|
||||
url: "https://gitlab.com/git-bug/group/subgroup/git-bug",
|
||||
},
|
||||
want: want{
|
||||
path: "MichaelMure/group/subgroup/git-bug",
|
||||
path: "git-bug/group/subgroup/git-bug",
|
||||
err: nil,
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "default url with git extension",
|
||||
args: args{
|
||||
url: "https://gitlab.com/MichaelMure/git-bug.git",
|
||||
url: "https://gitlab.com/git-bug/git-bug.git",
|
||||
},
|
||||
want: want{
|
||||
path: "MichaelMure/git-bug",
|
||||
path: "git-bug/git-bug",
|
||||
err: nil,
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "url with git protocol",
|
||||
args: args{
|
||||
url: "git://gitlab.com/MichaelMure/git-bug.git",
|
||||
url: "git://gitlab.com/git-bug/git-bug.git",
|
||||
},
|
||||
want: want{
|
||||
path: "MichaelMure/git-bug",
|
||||
path: "git-bug/git-bug",
|
||||
err: nil,
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "ssh url",
|
||||
args: args{
|
||||
url: "git@gitlab.com/MichaelMure/git-bug.git",
|
||||
url: "git@gitlab.com/git-bug/git-bug.git",
|
||||
},
|
||||
want: want{
|
||||
path: "MichaelMure/git-bug",
|
||||
path: "git-bug/git-bug",
|
||||
err: nil,
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "bad url",
|
||||
args: args{
|
||||
url: "---,%gitlab.com/MichaelMure/git-bug.git",
|
||||
url: "---,%gitlab.com/git-bug/git-bug.git",
|
||||
},
|
||||
want: want{
|
||||
err: ErrBadProjectURL,
|
||||
|
@ -7,7 +7,7 @@ import (
|
||||
|
||||
"github.com/xanzy/go-gitlab"
|
||||
|
||||
"github.com/MichaelMure/git-bug/util/text"
|
||||
"github.com/git-bug/git-bug/util/text"
|
||||
)
|
||||
|
||||
// Event represents a unified GitLab event (note, label or state event).
|
||||
|
@ -10,13 +10,13 @@ import (
|
||||
"github.com/pkg/errors"
|
||||
"github.com/xanzy/go-gitlab"
|
||||
|
||||
"github.com/MichaelMure/git-bug/bridge/core"
|
||||
"github.com/MichaelMure/git-bug/bridge/core/auth"
|
||||
"github.com/MichaelMure/git-bug/cache"
|
||||
"github.com/MichaelMure/git-bug/entities/bug"
|
||||
"github.com/MichaelMure/git-bug/entities/common"
|
||||
"github.com/MichaelMure/git-bug/entity"
|
||||
"github.com/MichaelMure/git-bug/entity/dag"
|
||||
"github.com/git-bug/git-bug/bridge/core"
|
||||
"github.com/git-bug/git-bug/bridge/core/auth"
|
||||
"github.com/git-bug/git-bug/cache"
|
||||
"github.com/git-bug/git-bug/entities/bug"
|
||||
"github.com/git-bug/git-bug/entities/common"
|
||||
"github.com/git-bug/git-bug/entity"
|
||||
"github.com/git-bug/git-bug/entity/dag"
|
||||
)
|
||||
|
||||
var (
|
||||
|
@ -11,16 +11,16 @@ import (
|
||||
|
||||
"github.com/xanzy/go-gitlab"
|
||||
|
||||
"github.com/MichaelMure/git-bug/entity"
|
||||
"github.com/MichaelMure/git-bug/entity/dag"
|
||||
"github.com/git-bug/git-bug/entity"
|
||||
"github.com/git-bug/git-bug/entity/dag"
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/MichaelMure/git-bug/bridge/core"
|
||||
"github.com/MichaelMure/git-bug/bridge/core/auth"
|
||||
"github.com/MichaelMure/git-bug/cache"
|
||||
"github.com/MichaelMure/git-bug/repository"
|
||||
"github.com/MichaelMure/git-bug/util/interrupt"
|
||||
"github.com/git-bug/git-bug/bridge/core"
|
||||
"github.com/git-bug/git-bug/bridge/core/auth"
|
||||
"github.com/git-bug/git-bug/cache"
|
||||
"github.com/git-bug/git-bug/repository"
|
||||
"github.com/git-bug/git-bug/util/interrupt"
|
||||
)
|
||||
|
||||
const (
|
||||
|
@ -5,8 +5,8 @@ import (
|
||||
|
||||
"github.com/xanzy/go-gitlab"
|
||||
|
||||
"github.com/MichaelMure/git-bug/bridge/core"
|
||||
"github.com/MichaelMure/git-bug/bridge/core/auth"
|
||||
"github.com/git-bug/git-bug/bridge/core"
|
||||
"github.com/git-bug/git-bug/bridge/core/auth"
|
||||
)
|
||||
|
||||
const (
|
||||
|
@ -4,7 +4,7 @@ import (
|
||||
"context"
|
||||
"time"
|
||||
|
||||
"github.com/MichaelMure/git-bug/util/text"
|
||||
"github.com/git-bug/git-bug/util/text"
|
||||
"github.com/xanzy/go-gitlab"
|
||||
)
|
||||
|
||||
|
@ -8,11 +8,11 @@ import (
|
||||
|
||||
"github.com/xanzy/go-gitlab"
|
||||
|
||||
"github.com/MichaelMure/git-bug/bridge/core"
|
||||
"github.com/MichaelMure/git-bug/bridge/core/auth"
|
||||
"github.com/MichaelMure/git-bug/cache"
|
||||
"github.com/MichaelMure/git-bug/entity"
|
||||
"github.com/MichaelMure/git-bug/util/text"
|
||||
"github.com/git-bug/git-bug/bridge/core"
|
||||
"github.com/git-bug/git-bug/bridge/core/auth"
|
||||
"github.com/git-bug/git-bug/cache"
|
||||
"github.com/git-bug/git-bug/entity"
|
||||
"github.com/git-bug/git-bug/util/text"
|
||||
)
|
||||
|
||||
// gitlabImporter implement the Importer interface
|
||||
|
@ -9,15 +9,15 @@ import (
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/MichaelMure/git-bug/bridge/core"
|
||||
"github.com/MichaelMure/git-bug/bridge/core/auth"
|
||||
"github.com/MichaelMure/git-bug/cache"
|
||||
"github.com/MichaelMure/git-bug/entities/bug"
|
||||
"github.com/MichaelMure/git-bug/entities/common"
|
||||
"github.com/MichaelMure/git-bug/entities/identity"
|
||||
"github.com/MichaelMure/git-bug/entity/dag"
|
||||
"github.com/MichaelMure/git-bug/repository"
|
||||
"github.com/MichaelMure/git-bug/util/interrupt"
|
||||
"github.com/git-bug/git-bug/bridge/core"
|
||||
"github.com/git-bug/git-bug/bridge/core/auth"
|
||||
"github.com/git-bug/git-bug/cache"
|
||||
"github.com/git-bug/git-bug/entities/bug"
|
||||
"github.com/git-bug/git-bug/entities/common"
|
||||
"github.com/git-bug/git-bug/entities/identity"
|
||||
"github.com/git-bug/git-bug/entity/dag"
|
||||
"github.com/git-bug/git-bug/repository"
|
||||
"github.com/git-bug/git-bug/util/interrupt"
|
||||
)
|
||||
|
||||
func TestGitlabImport(t *testing.T) {
|
||||
@ -73,7 +73,7 @@ func TestGitlabImport(t *testing.T) {
|
||||
bug: &bug.Snapshot{
|
||||
Operations: []dag.Operation{
|
||||
bug.NewCreateOp(author, 0, "complex issue", "initial comment", nil),
|
||||
bug.NewAddCommentOp(author, 0, "### header\n\n**bold**\n\n_italic_\n\n> with quote\n\n`inline code`\n\n```\nmultiline code\n```\n\n- bulleted\n- list\n\n1. numbered\n1. list\n\n- [ ] task\n- [x] list\n\n@MichaelMure mention\n\n#2 reference issue\n#3 auto-reference issue", nil),
|
||||
bug.NewAddCommentOp(author, 0, "### header\n\n**bold**\n\n_italic_\n\n> with quote\n\n`inline code`\n\n```\nmultiline code\n```\n\n- bulleted\n- list\n\n1. numbered\n1. list\n\n- [ ] task\n- [x] list\n\n@git-bug mention\n\n#2 reference issue\n#3 auto-reference issue", nil),
|
||||
bug.NewSetTitleOp(author, 0, "complex issue edited", "complex issue"),
|
||||
bug.NewSetTitleOp(author, 0, "complex issue", "complex issue edited"),
|
||||
bug.NewSetStatusOp(author, 0, common.ClosedStatus),
|
||||
|
@ -16,7 +16,7 @@ import (
|
||||
|
||||
"github.com/pkg/errors"
|
||||
|
||||
"github.com/MichaelMure/git-bug/entities/bug"
|
||||
"github.com/git-bug/git-bug/entities/bug"
|
||||
)
|
||||
|
||||
var errDone = errors.New("Iteration Done")
|
||||
|
@ -4,18 +4,18 @@ import (
|
||||
"context"
|
||||
"fmt"
|
||||
|
||||
"github.com/MichaelMure/git-bug/bridge/core"
|
||||
"github.com/MichaelMure/git-bug/bridge/core/auth"
|
||||
"github.com/MichaelMure/git-bug/cache"
|
||||
"github.com/MichaelMure/git-bug/commands/input"
|
||||
"github.com/MichaelMure/git-bug/repository"
|
||||
"github.com/git-bug/git-bug/bridge/core"
|
||||
"github.com/git-bug/git-bug/bridge/core/auth"
|
||||
"github.com/git-bug/git-bug/cache"
|
||||
"github.com/git-bug/git-bug/commands/input"
|
||||
"github.com/git-bug/git-bug/repository"
|
||||
)
|
||||
|
||||
const moreConfigText = `
|
||||
NOTE: There are a few optional configuration values that you can additionally
|
||||
set in your git configuration to influence the behavior of the bridge. Please
|
||||
see the notes at:
|
||||
https://github.com/MichaelMure/git-bug/blob/master/doc/jira_bridge.md
|
||||
https://github.com/git-bug/git-bug/blob/master/doc/jira_bridge.md
|
||||
`
|
||||
|
||||
const credTypeText = `
|
||||
|
@ -10,12 +10,12 @@ import (
|
||||
|
||||
"github.com/pkg/errors"
|
||||
|
||||
"github.com/MichaelMure/git-bug/bridge/core"
|
||||
"github.com/MichaelMure/git-bug/bridge/core/auth"
|
||||
"github.com/MichaelMure/git-bug/cache"
|
||||
"github.com/MichaelMure/git-bug/entities/bug"
|
||||
"github.com/MichaelMure/git-bug/entity"
|
||||
"github.com/MichaelMure/git-bug/entity/dag"
|
||||
"github.com/git-bug/git-bug/bridge/core"
|
||||
"github.com/git-bug/git-bug/bridge/core/auth"
|
||||
"github.com/git-bug/git-bug/cache"
|
||||
"github.com/git-bug/git-bug/entities/bug"
|
||||
"github.com/git-bug/git-bug/entity"
|
||||
"github.com/git-bug/git-bug/entity/dag"
|
||||
)
|
||||
|
||||
var (
|
||||
|
@ -9,14 +9,14 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/MichaelMure/git-bug/bridge/core"
|
||||
"github.com/MichaelMure/git-bug/bridge/core/auth"
|
||||
"github.com/MichaelMure/git-bug/cache"
|
||||
"github.com/MichaelMure/git-bug/entities/bug"
|
||||
"github.com/MichaelMure/git-bug/entities/common"
|
||||
"github.com/MichaelMure/git-bug/entity"
|
||||
"github.com/MichaelMure/git-bug/entity/dag"
|
||||
"github.com/MichaelMure/git-bug/util/text"
|
||||
"github.com/git-bug/git-bug/bridge/core"
|
||||
"github.com/git-bug/git-bug/bridge/core/auth"
|
||||
"github.com/git-bug/git-bug/cache"
|
||||
"github.com/git-bug/git-bug/entities/bug"
|
||||
"github.com/git-bug/git-bug/entities/common"
|
||||
"github.com/git-bug/git-bug/entity"
|
||||
"github.com/git-bug/git-bug/entity/dag"
|
||||
"github.com/git-bug/git-bug/util/text"
|
||||
)
|
||||
|
||||
const (
|
||||
|
@ -7,9 +7,9 @@ import (
|
||||
"sort"
|
||||
"time"
|
||||
|
||||
"github.com/MichaelMure/git-bug/bridge/core"
|
||||
"github.com/MichaelMure/git-bug/bridge/core/auth"
|
||||
"github.com/MichaelMure/git-bug/commands/input"
|
||||
"github.com/git-bug/git-bug/bridge/core"
|
||||
"github.com/git-bug/git-bug/bridge/core/auth"
|
||||
"github.com/git-bug/git-bug/commands/input"
|
||||
)
|
||||
|
||||
const (
|
||||
|
@ -6,9 +6,9 @@ import (
|
||||
"net/http"
|
||||
"regexp"
|
||||
|
||||
"github.com/MichaelMure/git-bug/bridge/core"
|
||||
"github.com/MichaelMure/git-bug/cache"
|
||||
"github.com/MichaelMure/git-bug/commands/input"
|
||||
"github.com/git-bug/git-bug/bridge/core"
|
||||
"github.com/git-bug/git-bug/cache"
|
||||
"github.com/git-bug/git-bug/commands/input"
|
||||
)
|
||||
|
||||
var ErrBadProjectURL = errors.New("bad Launchpad project URL")
|
||||
|
@ -5,10 +5,10 @@ import (
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
"github.com/MichaelMure/git-bug/bridge/core"
|
||||
"github.com/MichaelMure/git-bug/cache"
|
||||
"github.com/MichaelMure/git-bug/entity"
|
||||
"github.com/MichaelMure/git-bug/util/text"
|
||||
"github.com/git-bug/git-bug/bridge/core"
|
||||
"github.com/git-bug/git-bug/cache"
|
||||
"github.com/git-bug/git-bug/entity"
|
||||
"github.com/git-bug/git-bug/util/text"
|
||||
)
|
||||
|
||||
type launchpadImporter struct {
|
||||
|
@ -4,7 +4,7 @@ package launchpad
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/MichaelMure/git-bug/bridge/core"
|
||||
"github.com/git-bug/git-bug/bridge/core"
|
||||
)
|
||||
|
||||
const (
|
||||
|
10
cache/bug_cache.go
vendored
10
cache/bug_cache.go
vendored
@ -4,11 +4,11 @@ import (
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
"github.com/MichaelMure/git-bug/entities/bug"
|
||||
"github.com/MichaelMure/git-bug/entities/identity"
|
||||
"github.com/MichaelMure/git-bug/entity"
|
||||
"github.com/MichaelMure/git-bug/entity/dag"
|
||||
"github.com/MichaelMure/git-bug/repository"
|
||||
"github.com/git-bug/git-bug/entities/bug"
|
||||
"github.com/git-bug/git-bug/entities/identity"
|
||||
"github.com/git-bug/git-bug/entity"
|
||||
"github.com/git-bug/git-bug/entity/dag"
|
||||
"github.com/git-bug/git-bug/repository"
|
||||
)
|
||||
|
||||
var ErrNoMatchingOp = fmt.Errorf("no matching operation found")
|
||||
|
8
cache/bug_excerpt.go
vendored
8
cache/bug_excerpt.go
vendored
@ -4,10 +4,10 @@ import (
|
||||
"encoding/gob"
|
||||
"time"
|
||||
|
||||
"github.com/MichaelMure/git-bug/entities/bug"
|
||||
"github.com/MichaelMure/git-bug/entities/common"
|
||||
"github.com/MichaelMure/git-bug/entity"
|
||||
"github.com/MichaelMure/git-bug/util/lamport"
|
||||
"github.com/git-bug/git-bug/entities/bug"
|
||||
"github.com/git-bug/git-bug/entities/common"
|
||||
"github.com/git-bug/git-bug/entity"
|
||||
"github.com/git-bug/git-bug/util/lamport"
|
||||
)
|
||||
|
||||
// Package initialisation used to register the type for (de)serialization
|
||||
|
10
cache/bug_subcache.go
vendored
10
cache/bug_subcache.go
vendored
@ -5,11 +5,11 @@ import (
|
||||
"sort"
|
||||
"time"
|
||||
|
||||
"github.com/MichaelMure/git-bug/entities/bug"
|
||||
"github.com/MichaelMure/git-bug/entities/identity"
|
||||
"github.com/MichaelMure/git-bug/entity"
|
||||
"github.com/MichaelMure/git-bug/query"
|
||||
"github.com/MichaelMure/git-bug/repository"
|
||||
"github.com/git-bug/git-bug/entities/bug"
|
||||
"github.com/git-bug/git-bug/entities/identity"
|
||||
"github.com/git-bug/git-bug/entity"
|
||||
"github.com/git-bug/git-bug/query"
|
||||
"github.com/git-bug/git-bug/repository"
|
||||
)
|
||||
|
||||
type RepoCacheBug struct {
|
||||
|
8
cache/cached.go
vendored
8
cache/cached.go
vendored
@ -3,10 +3,10 @@ package cache
|
||||
import (
|
||||
"sync"
|
||||
|
||||
"github.com/MichaelMure/git-bug/entity"
|
||||
"github.com/MichaelMure/git-bug/entity/dag"
|
||||
"github.com/MichaelMure/git-bug/repository"
|
||||
"github.com/MichaelMure/git-bug/util/lamport"
|
||||
"github.com/git-bug/git-bug/entity"
|
||||
"github.com/git-bug/git-bug/entity/dag"
|
||||
"github.com/git-bug/git-bug/repository"
|
||||
"github.com/git-bug/git-bug/util/lamport"
|
||||
)
|
||||
|
||||
var _ CacheEntity = &CachedEntityBase[dag.Snapshot, dag.Operation]{}
|
||||
|
6
cache/filter.go
vendored
6
cache/filter.go
vendored
@ -3,9 +3,9 @@ package cache
|
||||
import (
|
||||
"strings"
|
||||
|
||||
"github.com/MichaelMure/git-bug/entities/common"
|
||||
"github.com/MichaelMure/git-bug/entity"
|
||||
"github.com/MichaelMure/git-bug/query"
|
||||
"github.com/git-bug/git-bug/entities/common"
|
||||
"github.com/git-bug/git-bug/entity"
|
||||
"github.com/git-bug/git-bug/query"
|
||||
)
|
||||
|
||||
// Filter is a predicate that match a subset of bugs
|
||||
|
6
cache/identity_cache.go
vendored
6
cache/identity_cache.go
vendored
@ -3,9 +3,9 @@ package cache
|
||||
import (
|
||||
"sync"
|
||||
|
||||
"github.com/MichaelMure/git-bug/entities/identity"
|
||||
"github.com/MichaelMure/git-bug/entity"
|
||||
"github.com/MichaelMure/git-bug/repository"
|
||||
"github.com/git-bug/git-bug/entities/identity"
|
||||
"github.com/git-bug/git-bug/entity"
|
||||
"github.com/git-bug/git-bug/repository"
|
||||
)
|
||||
|
||||
var _ identity.Interface = &IdentityCache{}
|
||||
|
2
cache/identity_excerpt.go
vendored
2
cache/identity_excerpt.go
vendored
@ -5,7 +5,7 @@ import (
|
||||
"fmt"
|
||||
"strings"
|
||||
|
||||
"github.com/MichaelMure/git-bug/entity"
|
||||
"github.com/git-bug/git-bug/entity"
|
||||
)
|
||||
|
||||
// Package initialisation used to register the type for (de)serialization
|
||||
|
6
cache/identity_subcache.go
vendored
6
cache/identity_subcache.go
vendored
@ -3,9 +3,9 @@ package cache
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/MichaelMure/git-bug/entities/identity"
|
||||
"github.com/MichaelMure/git-bug/entity"
|
||||
"github.com/MichaelMure/git-bug/repository"
|
||||
"github.com/git-bug/git-bug/entities/identity"
|
||||
"github.com/git-bug/git-bug/entity"
|
||||
"github.com/git-bug/git-bug/repository"
|
||||
)
|
||||
|
||||
type RepoCacheIdentity struct {
|
||||
|
2
cache/lru_id_cache.go
vendored
2
cache/lru_id_cache.go
vendored
@ -5,7 +5,7 @@ import (
|
||||
|
||||
lru "github.com/hashicorp/golang-lru/v2"
|
||||
|
||||
"github.com/MichaelMure/git-bug/entity"
|
||||
"github.com/git-bug/git-bug/entity"
|
||||
)
|
||||
|
||||
type lruIdCache struct {
|
||||
|
2
cache/multi_repo_cache.go
vendored
2
cache/multi_repo_cache.go
vendored
@ -3,7 +3,7 @@ package cache
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/MichaelMure/git-bug/repository"
|
||||
"github.com/git-bug/git-bug/repository"
|
||||
)
|
||||
|
||||
const lockfile = "lock"
|
||||
|
8
cache/repo_cache.go
vendored
8
cache/repo_cache.go
vendored
@ -7,10 +7,10 @@ import (
|
||||
"strconv"
|
||||
"sync"
|
||||
|
||||
"github.com/MichaelMure/git-bug/entity"
|
||||
"github.com/MichaelMure/git-bug/repository"
|
||||
"github.com/MichaelMure/git-bug/util/multierr"
|
||||
"github.com/MichaelMure/git-bug/util/process"
|
||||
"github.com/git-bug/git-bug/entity"
|
||||
"github.com/git-bug/git-bug/repository"
|
||||
"github.com/git-bug/git-bug/util/multierr"
|
||||
"github.com/git-bug/git-bug/util/process"
|
||||
)
|
||||
|
||||
// 1: original format
|
||||
|
8
cache/repo_cache_common.go
vendored
8
cache/repo_cache_common.go
vendored
@ -5,10 +5,10 @@ import (
|
||||
|
||||
"github.com/pkg/errors"
|
||||
|
||||
"github.com/MichaelMure/git-bug/entities/identity"
|
||||
"github.com/MichaelMure/git-bug/entity"
|
||||
"github.com/MichaelMure/git-bug/repository"
|
||||
"github.com/MichaelMure/git-bug/util/multierr"
|
||||
"github.com/git-bug/git-bug/entities/identity"
|
||||
"github.com/git-bug/git-bug/entity"
|
||||
"github.com/git-bug/git-bug/repository"
|
||||
"github.com/git-bug/git-bug/util/multierr"
|
||||
)
|
||||
|
||||
func (c *RepoCache) Name() string {
|
||||
|
12
cache/repo_cache_test.go
vendored
12
cache/repo_cache_test.go
vendored
@ -8,11 +8,11 @@ import (
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/MichaelMure/git-bug/entities/bug"
|
||||
"github.com/MichaelMure/git-bug/entities/identity"
|
||||
"github.com/MichaelMure/git-bug/entity"
|
||||
"github.com/MichaelMure/git-bug/query"
|
||||
"github.com/MichaelMure/git-bug/repository"
|
||||
"github.com/git-bug/git-bug/entities/bug"
|
||||
"github.com/git-bug/git-bug/entities/identity"
|
||||
"github.com/git-bug/git-bug/entity"
|
||||
"github.com/git-bug/git-bug/query"
|
||||
"github.com/git-bug/git-bug/repository"
|
||||
)
|
||||
|
||||
func TestCache(t *testing.T) {
|
||||
@ -331,7 +331,7 @@ func TestCacheEviction(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestLongDescription(t *testing.T) {
|
||||
// See https://github.com/MichaelMure/git-bug/issues/606
|
||||
// See https://github.com/git-bug/git-bug/issues/606
|
||||
|
||||
text := strings.Repeat("x", 65536)
|
||||
|
||||
|
6
cache/subcache.go
vendored
6
cache/subcache.go
vendored
@ -9,9 +9,9 @@ import (
|
||||
|
||||
"github.com/pkg/errors"
|
||||
|
||||
"github.com/MichaelMure/git-bug/entities/identity"
|
||||
"github.com/MichaelMure/git-bug/entity"
|
||||
"github.com/MichaelMure/git-bug/repository"
|
||||
"github.com/git-bug/git-bug/entities/identity"
|
||||
"github.com/git-bug/git-bug/entity"
|
||||
"github.com/git-bug/git-bug/repository"
|
||||
)
|
||||
|
||||
type Excerpt interface {
|
||||
|
4
cache/with_snapshot.go
vendored
4
cache/with_snapshot.go
vendored
@ -3,8 +3,8 @@ package cache
|
||||
import (
|
||||
"sync"
|
||||
|
||||
"github.com/MichaelMure/git-bug/entity/dag"
|
||||
"github.com/MichaelMure/git-bug/repository"
|
||||
"github.com/git-bug/git-bug/entity/dag"
|
||||
"github.com/git-bug/git-bug/repository"
|
||||
)
|
||||
|
||||
var _ dag.Interface[dag.Snapshot, dag.OperationWithApply[dag.Snapshot]] = &withSnapshot[dag.Snapshot, dag.OperationWithApply[dag.Snapshot]]{}
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user