Merge pull request 'chore: migrate module path to gitea.unbound.se' (#116) from migrate-to-gitea into main
Reviewed-on: #116
This commit was merged in pull request #116.
This commit is contained in:
@@ -23,7 +23,7 @@ repos:
|
|||||||
- id: go-imports
|
- id: go-imports
|
||||||
args:
|
args:
|
||||||
- -local
|
- -local
|
||||||
- git.unbound.se/shiny/presenter
|
- gitea.unbound.se/shiny/presenter
|
||||||
- repo: https://github.com/lietu/go-pre-commit
|
- repo: https://github.com/lietu/go-pre-commit
|
||||||
rev: v1.0.0
|
rev: v1.0.0
|
||||||
hooks:
|
hooks:
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ Provides a standardized GraphQL error presenter that handles coded errors across
|
|||||||
### Usage
|
### Usage
|
||||||
|
|
||||||
```go
|
```go
|
||||||
import "git.unbound.se/shiny/presenter"
|
import "gitea.unbound.se/shiny/presenter"
|
||||||
|
|
||||||
// Create error presenter with valid codes and entities
|
// Create error presenter with valid codes and entities
|
||||||
errorPresenter := presenter.New(logger, validCodes, validEntities, internalErrorCode)
|
errorPresenter := presenter.New(logger, validCodes, validEntities, internalErrorCode)
|
||||||
|
|||||||
+1
-1
@@ -7,7 +7,7 @@ import (
|
|||||||
|
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
|
|
||||||
"git.unbound.se/shiny/presenter"
|
"gitea.unbound.se/shiny/presenter"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestCodedError_ErrorIs(t *testing.T) {
|
func TestCodedError_ErrorIs(t *testing.T) {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
module git.unbound.se/shiny/presenter
|
module gitea.unbound.se/shiny/presenter
|
||||||
|
|
||||||
go 1.24.1
|
go 1.24.1
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -11,7 +11,7 @@ import (
|
|||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"github.com/vektah/gqlparser/v2/gqlerror"
|
"github.com/vektah/gqlparser/v2/gqlerror"
|
||||||
|
|
||||||
"git.unbound.se/shiny/presenter"
|
"gitea.unbound.se/shiny/presenter"
|
||||||
)
|
)
|
||||||
|
|
||||||
func Test_globalErrorPresenter(t *testing.T) {
|
func Test_globalErrorPresenter(t *testing.T) {
|
||||||
|
|||||||
Reference in New Issue
Block a user