Compare commits
25 Commits
45c18ccef6
...
v0.3.0
| Author | SHA1 | Date | |
|---|---|---|---|
| ab263ad2be | |||
| e53a54e58c | |||
| 018444c022 | |||
| 4a4fe3d5c8 | |||
|
65aba3a47c
|
|||
| e565f7b147 | |||
|
44464c0a85
|
|||
| cba9bb814d | |||
| e998aa8599 | |||
| a8a7fae14b | |||
| d092bb4158 | |||
| e7733a069d | |||
| 90518df4be | |||
| d007daed7a | |||
| a4eb50c45a | |||
| b309cf5fc7 | |||
| 824e3703a9 | |||
| aab014650e | |||
| 51dc2e8605 | |||
| b0d63489ea | |||
| 621e039ccf | |||
| 1b6d69f5f1 | |||
| 32887d6002 | |||
| 044226072b | |||
| 03b493c2e3 |
@@ -0,0 +1,25 @@
|
|||||||
|
name: pre-commit
|
||||||
|
permissions: read-all
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
pre-commit:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
env:
|
||||||
|
SKIP: no-commit-to-branch
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v6
|
||||||
|
- uses: actions/setup-go@v6
|
||||||
|
with:
|
||||||
|
go-version: stable
|
||||||
|
- uses: actions/setup-python@v5
|
||||||
|
with:
|
||||||
|
python-version: '3.14'
|
||||||
|
- name: Install goimports
|
||||||
|
run: go install golang.org/x/tools/cmd/goimports@latest
|
||||||
|
- uses: pre-commit/action@v3.0.1
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
name: Release
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [main]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
release:
|
||||||
|
uses: unboundsoftware/shared-workflows/.gitea/workflows/Release.yml@main
|
||||||
@@ -10,13 +10,6 @@ repos:
|
|||||||
args:
|
args:
|
||||||
- --allow-multiple-documents
|
- --allow-multiple-documents
|
||||||
- id: check-added-large-files
|
- id: check-added-large-files
|
||||||
- repo: https://gitlab.com/devopshq/gitlab-ci-linter
|
|
||||||
rev: v1.0.6
|
|
||||||
hooks:
|
|
||||||
- id: gitlab-ci-linter
|
|
||||||
args:
|
|
||||||
- --project
|
|
||||||
- unboundsoftware/shiny/presenter
|
|
||||||
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
|
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
|
||||||
rev: v9.23.0
|
rev: v9.23.0
|
||||||
hooks:
|
hooks:
|
||||||
@@ -30,7 +23,7 @@ repos:
|
|||||||
- id: go-imports
|
- id: go-imports
|
||||||
args:
|
args:
|
||||||
- -local
|
- -local
|
||||||
- gitlab.com/unboundsoftware/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:
|
||||||
|
|||||||
@@ -2,6 +2,35 @@
|
|||||||
|
|
||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
|
|
||||||
|
## [0.3.0] - 2026-01-09
|
||||||
|
|
||||||
|
### 🚀 Features
|
||||||
|
|
||||||
|
- Migrate from GitLab CI to Gitea Actions
|
||||||
|
|
||||||
|
### 🐛 Bug Fixes
|
||||||
|
|
||||||
|
- *(deps)* Update module github.com/99designs/gqlgen to v0.17.85
|
||||||
|
- Update module path from gitlab to git.unbound.se
|
||||||
|
|
||||||
|
### 📚 Documentation
|
||||||
|
|
||||||
|
- Add CLAUDE.md for Claude Code integration
|
||||||
|
|
||||||
|
### ⚙️ Miscellaneous Tasks
|
||||||
|
|
||||||
|
- *(deps)* Update pre-commit hook gitleaks/gitleaks to v8.30.0
|
||||||
|
- *(deps)* Update golang docker tag to v1.25.5
|
||||||
|
- *(deps)* Update pre-commit hook golangci/golangci-lint to v2.7.0
|
||||||
|
- *(deps)* Update pre-commit hook golangci/golangci-lint to v2.7.1
|
||||||
|
- *(deps)* Update pre-commit hook golangci/golangci-lint to v2.7.2
|
||||||
|
- *(deps)* Update golang:1.25.5 docker digest to 0c27bcf
|
||||||
|
- *(deps)* Update golang:1.25.5 docker digest to ad03ba9
|
||||||
|
- *(deps)* Update actions/checkout action to v6
|
||||||
|
- *(deps)* Update actions/setup-go action to v6
|
||||||
|
- *(deps)* Update pre-commit hook golangci/golangci-lint to v2.8.0
|
||||||
|
- Add pre-commit and release workflows
|
||||||
|
|
||||||
## [0.2.2] - 2025-11-24
|
## [0.2.2] - 2025-11-24
|
||||||
|
|
||||||
### 🐛 Bug Fixes
|
### 🐛 Bug Fixes
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ Provides a standardized GraphQL error presenter that handles coded errors across
|
|||||||
### Usage
|
### Usage
|
||||||
|
|
||||||
```go
|
```go
|
||||||
import "gitlab.com/unboundsoftware/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,6 +1,3 @@
|
|||||||
# Shiny global error presenter
|
# Shiny global error presenter
|
||||||
|
|
||||||
GraphQL global error presenter handling coded errors.
|
GraphQL global error presenter handling coded errors.
|
||||||
|
|
||||||
[](https://gitlab.com/unboundsoftware/shiny/presenter/commits/main)
|
|
||||||
[](https://codecov.io/gl/unboundsoftware:shiny/presenter)
|
|
||||||
|
|||||||
+1
-1
@@ -7,7 +7,7 @@ import (
|
|||||||
|
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
|
|
||||||
"gitlab.com/unboundsoftware/shiny/presenter"
|
"git.unbound.se/shiny/presenter"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestCodedError_ErrorIs(t *testing.T) {
|
func TestCodedError_ErrorIs(t *testing.T) {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
module gitlab.com/unboundsoftware/shiny/presenter
|
module git.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"
|
||||||
|
|
||||||
"gitlab.com/unboundsoftware/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