feat: move module path to git.unbound.se (#207)
presenter / test (push) Successful in 1m0s
presenter / vulnerabilities (push) Successful in 38s
Unbound Release / Check Preconditions (push) Successful in 1s
Unbound Release / Create Tag (push) Skipped
pre-commit / pre-commit (push) Successful in 3m5s
Unbound Release / Generate Changelog and Handle PR (push) Successful in 10s
Unbound Release / Create Release (push) Successful in 4s
Release / release (push) Successful in 8m58s
presenter / test (push) Successful in 1m0s
presenter / vulnerabilities (push) Successful in 38s
Unbound Release / Check Preconditions (push) Successful in 1s
Unbound Release / Create Tag (push) Skipped
pre-commit / pre-commit (push) Successful in 3m5s
Unbound Release / Generate Changelog and Handle PR (push) Successful in 10s
Unbound Release / Create Release (push) Successful in 4s
Release / release (push) Successful in 8m58s
This commit was merged in pull request #207.
This commit is contained in:
1 parent
7532ef4582
commit
66b940f05c
5 files changed
+5
-5
No files matched your search
@@ -23,7 +23,7 @@ repos:
|
|||||||
- id: go-imports
|
- id: go-imports
|
||||||
args:
|
args:
|
||||||
- -local
|
- -local
|
||||||
- gitea.unbound.se/shiny/presenter
|
- git.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 "gitea.unbound.se/shiny/presenter"
|
import "git.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"
|
||||||
|
|
||||||
"gitea.unbound.se/shiny/presenter"
|
"git.unbound.se/shiny/presenter"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestCodedError_ErrorIs(t *testing.T) {
|
func TestCodedError_ErrorIs(t *testing.T) {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
module gitea.unbound.se/shiny/presenter
|
module git.unbound.se/shiny/presenter
|
||||||
|
|
||||||
go 1.26
|
go 1.26
|
||||||
|
|
||||||
|
|||||||
+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"
|
||||||
|
|
||||||
"gitea.unbound.se/shiny/presenter"
|
"git.unbound.se/shiny/presenter"
|
||||||
)
|
)
|
||||||
|
|
||||||
func Test_globalErrorPresenter(t *testing.T) {
|
func Test_globalErrorPresenter(t *testing.T) {
|
||||||
|
|||||||
Reference in new issue
Block a user