13 Commits

Author SHA1 Message Date
argoyle 4a4fe3d5c8 Merge pull request 'ci: add pre-commit and release workflows' (#112) from add-workflows into main
Release / release (push) Successful in 1m29s
presenter / test (push) Successful in 3m6s
presenter / vulnerabilities (push) Successful in 3m16s
pre-commit / pre-commit (push) Has been cancelled
Reviewed-on: #112
2026-01-09 08:58:03 +00:00
argoyle 65aba3a47c ci: add pre-commit and release workflows
presenter / test (pull_request) Successful in 2m26s
presenter / vulnerabilities (pull_request) Successful in 2m26s
pre-commit / pre-commit (pull_request) Successful in 7m54s
2026-01-09 09:48:25 +01:00
argoyle e565f7b147 Merge pull request 'fix: update module path from gitlab to git.unbound.se' (#113) from update-module-path-git-unbound into main
presenter / vulnerabilities (push) Successful in 3m12s
presenter / test (push) Successful in 3m25s
Reviewed-on: #113
2026-01-09 08:47:37 +00:00
argoyle 44464c0a85 fix: update module path from gitlab to git.unbound.se
presenter / test (pull_request) Successful in 2m3s
presenter / vulnerabilities (pull_request) Successful in 2m28s
Change the module path in various files to reflect the new 
repository location on git.unbound.se. Update imports in 
CLAUDE.md, error_test.go, and presenter_test.go to ensure 
compatibility with the updated module path. Remove outdated 
CI configuration in .pre-commit-config.yaml to streamline 
the setup. This enhances consistency and aligns the project 
with its new hosting platform.
2026-01-09 09:26:03 +01:00
argoyle 45c18ccef6 Merge pull request 'chore(deps): update pre-commit hook golangci/golangci-lint to v2.8.0' (#111) from renovate/golangci-golangci-lint-2.x into main
presenter / test (push) Successful in 1m58s
presenter / vulnerabilities (push) Successful in 2m0s
Reviewed-on: #111
2026-01-09 04:13:14 +00:00
renovate 61f079354d chore(deps): update pre-commit hook golangci/golangci-lint to v2.8.0
presenter / test (pull_request) Successful in 5m26s
presenter / vulnerabilities (pull_request) Successful in 5m55s
2026-01-08 21:23:40 +00:00
argoyle b19d1fa250 Merge pull request 'chore(deps): update actions/setup-go action to v6' (#110) from renovate/actions-setup-go-6.x into main
presenter / vulnerabilities (push) Successful in 3m4s
presenter / test (push) Successful in 3m53s
Reviewed-on: #110
2026-01-08 19:21:41 +00:00
renovate 0f1ee07348 chore(deps): update actions/setup-go action to v6
presenter / test (pull_request) Successful in 3m22s
presenter / vulnerabilities (pull_request) Successful in 3m48s
2026-01-08 19:15:59 +00:00
argoyle 773cf10d05 Merge pull request 'chore(deps): update actions/checkout action to v6' (#109) from renovate/actions-checkout-6.x into main
presenter / test (push) Successful in 3m58s
presenter / vulnerabilities (push) Successful in 3m27s
Reviewed-on: #109
2026-01-08 18:30:26 +00:00
renovate 038ef213bb chore(deps): update actions/checkout action to v6
presenter / test (pull_request) Successful in 6m13s
presenter / vulnerabilities (pull_request) Successful in 6m16s
2026-01-08 18:12:09 +00:00
argoyle c35239b385 Merge pull request 'feat: migrate from GitLab CI to Gitea Actions' (#108) from feat/gitea-actions into main
presenter / vulnerabilities (push) Successful in 1m6s
presenter / test (push) Successful in 1m9s
Reviewed-on: #108
2026-01-08 17:57:29 +00:00
argoyle 7644c6793e feat: migrate from GitLab CI to Gitea Actions
presenter / vulnerabilities (pull_request) Successful in 1m5s
presenter / test (pull_request) Successful in 2m10s
2026-01-08 18:34:23 +01:00
argoyle 147fb3ab15 Merge branch 'claude-docs' into 'main'
docs: add CLAUDE.md for Claude Code integration

See merge request unboundsoftware/shiny/presenter!106
2025-12-31 22:15:17 +01:00
9 changed files with 70 additions and 16 deletions
+30
View File
@@ -0,0 +1,30 @@
name: presenter
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-go@v6
with:
go-version: 'stable'
- name: Run tests
run: go test -race -coverprofile=coverage.txt ./...
vulnerabilities:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-go@v6
with:
go-version: 'stable'
- name: Check vulnerabilities
run: |
go install golang.org/x/vuln/cmd/govulncheck@latest
govulncheck ./...
+25
View File
@@ -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
+9
View File
@@ -0,0 +1,9 @@
name: Release
on:
push:
branches: [main]
jobs:
release:
uses: unboundsoftware/shared-workflows/.gitea/workflows/Release.yml@main
+2 -9
View File
@@ -10,13 +10,6 @@ repos:
args:
- --allow-multiple-documents
- 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
rev: v9.23.0
hooks:
@@ -30,14 +23,14 @@ repos:
- id: go-imports
args:
- -local
- gitlab.com/unboundsoftware/shiny/presenter
- git.unbound.se/shiny/presenter
- repo: https://github.com/lietu/go-pre-commit
rev: v1.0.0
hooks:
- id: go-test
- id: gofumpt
- repo: https://github.com/golangci/golangci-lint
rev: v2.7.2
rev: v2.8.0
hooks:
- id: golangci-lint-full
- repo: https://github.com/gitleaks/gitleaks
+1 -1
View File
@@ -18,7 +18,7 @@ Provides a standardized GraphQL error presenter that handles coded errors across
### Usage
```go
import "gitlab.com/unboundsoftware/shiny/presenter"
import "git.unbound.se/shiny/presenter"
// Create error presenter with valid codes and entities
errorPresenter := presenter.New(logger, validCodes, validEntities, internalErrorCode)
-3
View File
@@ -1,6 +1,3 @@
# Shiny global error presenter
GraphQL global error presenter handling coded errors.
[![Build Status](https://gitlab.com/unboundsoftware/shiny/presenter/badges/main/pipeline.svg)](https://gitlab.com/unboundsoftware/shiny/presenter/commits/main)
[![codecov](https://codecov.io/gl/unboundsoftware:shiny/presenter/branch/main/graph/badge.svg?token=8F3HKACF7A)](https://codecov.io/gl/unboundsoftware:shiny/presenter)
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"github.com/stretchr/testify/require"
"gitlab.com/unboundsoftware/shiny/presenter"
"git.unbound.se/shiny/presenter"
)
func TestCodedError_ErrorIs(t *testing.T) {
+1 -1
View File
@@ -1,4 +1,4 @@
module gitlab.com/unboundsoftware/shiny/presenter
module git.unbound.se/shiny/presenter
go 1.24.1
+1 -1
View File
@@ -11,7 +11,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/vektah/gqlparser/v2/gqlerror"
"gitlab.com/unboundsoftware/shiny/presenter"
"git.unbound.se/shiny/presenter"
)
func Test_globalErrorPresenter(t *testing.T) {