argoyle
557abf0540
fix(ci): use go-test-coverage binary directly to fix Gitea Actions ( #96 )
...
Release / release (push) Successful in 52s
pagination / vulnerabilities (push) Successful in 1m49s
pagination / test (push) Successful in 3m2s
pre-commit / pre-commit (push) Successful in 6m29s
## Summary
- `vladopajic/go-test-coverage@v2` (v2.18.5+, released 2026-04-26/27) restructured its composite action to pass inputs via env-var mapping. Gitea `act_runner` doesn't expand `${{ }}` expressions inside docker-action `env:` blocks reliably, so the literal string `${{ inputs.config }}` reached the binary and broke the 'Check coverage' step.
- Replace the action with a direct `go install` + binary invocation (matching the established Frostmoln pattern).
- Use `--github-action-output` to expose `total-coverage` as a step output, replacing the manual `go tool cover -func | grep | awk` calculations.
- Baseline artifact now stores the percentage directly instead of the full coverage profile.
- Bump `go` directive in `go.mod` from 1.24.4 → 1.26.2 (matching toolchain) — we are the sole consumers of this module.
## Test plan
- [x] `prek run --all-files` passes
- [ ] CI passes on this PR
- [ ] After merge, baseline artifact format propagates on next push to main
Reviewed-on: #96
2026-04-29 06:09:52 +00:00
argoyle
ba1fe9694e
Merge pull request 'ci: add code coverage integration' ( #79 ) from ci-coverage-integration into main
...
Release / release (push) Successful in 4m48s
pagination / test (push) Successful in 5m26s
pagination / vulnerabilities (push) Successful in 7m51s
pre-commit / pre-commit (push) Successful in 14m30s
Reviewed-on: #79
2026-01-28 12:38:05 +00:00
argoyle and Claude Opus 4.5
768dbed8f3
ci: add code coverage integration
...
pagination / test (pull_request) Successful in 6m26s
pagination / vulnerabilities (pull_request) Successful in 6m27s
pre-commit / pre-commit (pull_request) Successful in 11m3s
Add go-test-coverage for coverage threshold enforcement. Coverage data
is uploaded as artifacts on main branch and compared against baseline
in PRs using shell script that gracefully handles first run without
baseline. PR comments show coverage percentage.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com >
2026-01-28 13:03:30 +01:00
argoyle
235cfb3dfc
Merge pull request 'chore(release): prepare for v0.2.1' ( #76 ) from next-release into main
...
pagination / vulnerabilities (push) Successful in 8m8s
pre-commit / pre-commit (push) Successful in 13m51s
Release / release (push) Successful in 3m49s
pagination / test (push) Successful in 7m52s
Reviewed-on: #76
2026-01-09 13:50:13 +00:00
argoyle
ab0af6c5a4
Merge pull request 'chore: migrate module path to gitea.unbound.se' ( #75 ) from migrate-to-gitea into main
...
pre-commit / pre-commit (push) Successful in 11m8s
pagination / test (push) Successful in 3m34s
Release / release (push) Failing after 2m7s
pagination / vulnerabilities (push) Successful in 5m21s
Reviewed-on: #75
2026-01-09 13:24:39 +00:00
argoyle
88b4ab1467
chore: migrate module path to gitea.unbound.se
...
pagination / test (pull_request) Successful in 5m23s
pagination / vulnerabilities (pull_request) Successful in 6m20s
pre-commit / pre-commit (pull_request) Successful in 13m35s
Update module path from git.unbound.se to gitea.unbound.se for Go module
discovery over HTTPS.
2026-01-09 14:09:11 +01:00
argoyle
a1052d3708
Merge pull request 'chore(deps): update actions/setup-python action to v6' ( #74 ) from renovate/actions-setup-python-6.x into main
...
Release / release (push) Failing after 1m27s
pre-commit / pre-commit (push) Successful in 6m46s
pagination / test (push) Successful in 7m8s
pagination / vulnerabilities (push) Successful in 7m32s
Reviewed-on: #74
2026-01-09 09:04:51 +00:00
argoyle
f41c7de3ac
Merge pull request 'chore(release): prepare for v0.2.0' ( #73 ) from next-release into main
...
Release / release (push) Successful in 1m39s
pagination / test (push) Successful in 3m45s
pagination / vulnerabilities (push) Successful in 3m41s
pre-commit / pre-commit (push) Successful in 10m49s
Reviewed-on: #73
2026-01-09 08:13:21 +00:00
argoyle
8a11a52ea1
Merge pull request 'ci: add pre-commit and release workflows for Gitea Actions' ( #72 ) from ci/gitea-workflows into main
...
Release / release (push) Successful in 1m16s
pagination / test (push) Successful in 6m24s
pagination / vulnerabilities (push) Successful in 6m54s
pre-commit / pre-commit (push) Successful in 10m33s
Reviewed-on: #72
2026-01-09 08:01:14 +00:00
argoyle
d484be8e15
ci: add pre-commit and release workflows for Gitea Actions
pagination / test (pull_request) Successful in 5m24s
pagination / vulnerabilities (pull_request) Successful in 5m39s
pre-commit / pre-commit (pull_request) Successful in 8m1s
2026-01-09 08:50:36 +01:00
argoyle
3e62319fad
Merge pull request 'chore: migrate module path from GitLab to Gitea' ( #71 ) from chore/gitea-migration into main
...
pagination / test (push) Successful in 1m46s
pagination / vulnerabilities (push) Successful in 1m35s
Reviewed-on: #71
2026-01-09 07:02:16 +00:00
argoyle
ea0595f8cb
chore: migrate module path from GitLab to Gitea
...
pagination / test (pull_request) Successful in 2m0s
pagination / vulnerabilities (pull_request) Successful in 1m59s
- Update go.mod module path to git.unbound.se/unboundsoftware/pagination
- Remove GitLab CI linter from pre-commit config
- Update go-imports local path for new domain
- Remove GitLab badges from README
- Delete .gitlab-ci.yml (Gitea Actions workflow already exists)
2026-01-09 07:58:49 +01:00
argoyle
26d3136eaa
Merge pull request 'chore(deps): update pre-commit hook golangci/golangci-lint to v2.8.0' ( #70 ) from renovate/golangci-golangci-lint-2.x into main
...
pagination / vulnerabilities (push) Successful in 2m19s
pagination / test (push) Successful in 4m55s
Reviewed-on: #70
2026-01-09 04:12:59 +00:00
argoyle
feeae4d43c
Merge pull request 'chore(deps): update actions/setup-go action to v6' ( #69 ) from renovate/actions-setup-go-6.x into main
...
pagination / test (push) Successful in 2m47s
pagination / vulnerabilities (push) Successful in 2m51s
Reviewed-on: #69
2026-01-08 15:15:52 +00:00
argoyle
259610599d
Merge pull request 'chore(deps): update actions/checkout action to v6' ( #68 ) from renovate/actions-checkout-6.x into main
...
pagination / vulnerabilities (push) Successful in 57s
pagination / test (push) Successful in 6m0s
Reviewed-on: #68
2026-01-08 14:10:20 +00:00
argoyle
496539b836
Merge pull request 'feat: add Gitea Actions workflow' ( #67 ) from feat/gitea-migration into main
...
pagination / test (push) Successful in 1m36s
pagination / vulnerabilities (push) Successful in 1m36s
Reviewed-on: #67
2026-01-08 13:32:35 +00:00
argoyle
583eaae203
feat: add Gitea Actions workflow
pagination / test (pull_request) Successful in 1m15s
pagination / vulnerabilities (pull_request) Successful in 1m16s
2026-01-08 14:04:07 +01:00
argoyle
84bc7a80ce
Merge branch 'next-release' into 'main'
...
chore(release): prepare for v0.1.0
See merge request unboundsoftware/pagination!33
2026-01-01 23:39:25 +01:00
argoyle
b38eccbc46
Merge branch 'test/validation-coverage' into 'main'
...
test: add comprehensive validation and cursor test coverage
See merge request unboundsoftware/pagination!63
2026-01-01 23:21:38 +01:00
argoyle
0d61ca4d92
Merge branch 'docs/godoc-comments' into 'main'
...
docs: add godoc comments to public functions and types
See merge request unboundsoftware/pagination!65
2026-01-01 22:22:21 +01:00
argoyle
3af635b6c3
test: add comprehensive validation and cursor test coverage
2026-01-01 21:41:32 +01:00
argoyle
3008e2c49b
docs: add godoc comments to public functions and types
2026-01-01 21:41:08 +01:00
argoyle
250a5e0c04
Merge branch 'feat/total-count' into 'main'
...
feat: add TotalCount field to PageInfo
See merge request unboundsoftware/pagination!64
2026-01-01 21:37:46 +01:00
argoyle
4b5115fe26
Merge branch 'refactor/custom-error-types' into 'main'
...
refactor: add custom error types for better error handling
See merge request unboundsoftware/pagination!62
2026-01-01 21:35:55 +01:00
argoyle
6409d9b2aa
refactor: add custom error types for better error handling
2026-01-01 20:39:59 +01:00
argoyle
718fb0b17c
Merge branch 'fix/negative-slice-index' into 'main'
...
fix: prevent negative slice index when last exceeds items count
See merge request unboundsoftware/pagination!61
2026-01-01 16:49:46 +01:00
argoyle
7fd209b5df
Merge branch 'docs-add-CLAUDE-and-update-gitignore' into 'main'
...
docs: add CLAUDE.md and update .gitignore
See merge request unboundsoftware/pagination!60
2026-01-01 16:48:40 +01:00
argoyle
3e5b220810
feat: add TotalCount field to PageInfo
...
test: add TotalCount assertions to existing tests
2026-01-01 15:37:19 +01:00
argoyle
bead25aa6b
fix: prevent negative slice index when last exceeds items count
2026-01-01 15:09:00 +01:00
argoyle
236399df03
docs: add CLAUDE.md and update .gitignore
2026-01-01 15:08:10 +01:00
argoyle
02405c5ce1
Merge branch 'renovate/golang-1.25.5' into 'main'
...
chore(deps): update golang:1.25.5 docker digest to ad03ba9
See merge request unboundsoftware/pagination!59
2025-12-30 15:55:43 +01:00
argoyle
f9586d2d1d
Merge branch 'renovate/golang-1.25.5' into 'main'
...
chore(deps): update golang:1.25.5 docker digest to 0c27bcf
See merge request unboundsoftware/pagination!58
2025-12-09 09:53:22 +01:00
argoyle
57d72c54d1
Merge branch 'renovate/golangci-golangci-lint-2.x' into 'main'
...
chore(deps): update pre-commit hook golangci/golangci-lint to v2.7.2
See merge request unboundsoftware/pagination!57
2025-12-08 09:40:22 +01:00
argoyle
a55fa056f6
Merge branch 'renovate/golangci-golangci-lint-2.x' into 'main'
...
chore(deps): update pre-commit hook golangci/golangci-lint to v2.7.1
See merge request unboundsoftware/pagination!56
2025-12-04 16:24:06 +01:00
argoyle
63b91ee6ec
Merge branch 'renovate/golangci-golangci-lint-2.x' into 'main'
...
chore(deps): update pre-commit hook golangci/golangci-lint to v2.7.0
See merge request unboundsoftware/pagination!55
2025-12-04 08:27:17 +01:00
argoyle
1f997f4b8f
Merge branch 'renovate/golang-1.x' into 'main'
...
chore(deps): update golang docker tag to v1.25.5
See merge request unboundsoftware/pagination!54
2025-12-02 19:38:51 +01:00
argoyle
61cbd44133
Merge branch 'renovate/gitleaks-gitleaks-8.x' into 'main'
...
chore(deps): update pre-commit hook gitleaks/gitleaks to v8.30.0
See merge request unboundsoftware/pagination!53
2025-11-27 00:03:47 +01:00
argoyle
f879f0e13e
Merge branch 'renovate/gitleaks-gitleaks-8.x' into 'main'
...
chore(deps): update pre-commit hook gitleaks/gitleaks to v8.29.1
See merge request unboundsoftware/pagination!52
2025-11-20 09:20:03 +01:00
argoyle
43a1a54748
Merge branch 'renovate/golang-1.25.4' into 'main'
...
chore(deps): update golang:1.25.4 docker digest to efe81fa
See merge request unboundsoftware/pagination!51
2025-11-18 16:19:33 +01:00
argoyle
8f12a7cdc1
Merge branch 'renovate/golangci-golangci-lint-2.x' into 'main'
...
chore(deps): update pre-commit hook golangci/golangci-lint to v2.6.2
See merge request unboundsoftware/pagination!50
2025-11-14 16:20:44 +01:00
argoyle
09e72624f5
Merge branch 'renovate/golang-1.x' into 'main'
...
chore(deps): update golang docker tag to v1.25.4
See merge request unboundsoftware/pagination!49
2025-11-05 23:13:04 +01:00
argoyle
a8befab266
Merge branch 'renovate/gitleaks-gitleaks-8.x' into 'main'
...
chore(deps): update pre-commit hook gitleaks/gitleaks to v8.29.0
See merge request unboundsoftware/pagination!48
2025-11-05 06:51:44 +01:00
argoyle
dd2c49d44c
Merge branch 'renovate/golangci-golangci-lint-2.x' into 'main'
...
chore(deps): update pre-commit hook golangci/golangci-lint to v2.6.1
See merge request unboundsoftware/pagination!47
2025-11-04 13:34:45 +01:00
argoyle
ca2bf9629f
Merge branch 'renovate/golang-1.25.3' into 'main'
...
chore(deps): update golang:1.25.3 docker digest to 9ac0edc
See merge request unboundsoftware/pagination!46
2025-11-04 13:34:01 +01:00
argoyle
92f6545acd
Merge branch 'renovate/golangci-golangci-lint-2.x' into 'main'
...
chore(deps): update pre-commit hook golangci/golangci-lint to v2.6.0
See merge request unboundsoftware/pagination!45
2025-10-29 23:14:49 +01:00
argoyle
6c3576453a
Merge branch 'feat/config-cleanup-remove-initial-tag' into 'main'
...
feat(config): remove initial tag configuration and cleanup
See merge request unboundsoftware/pagination!44
2025-10-21 16:14:48 +02:00
argoyle
a32311acd9
feat(config): remove initial tag configuration and cleanup
...
Removes the initial tag setting from the configuration and cleans up
commented sections for better readability. This simplifies the config
file and enhances maintainability for future updates.
2025-10-21 15:31:54 +02:00
argoyle
fb800730bb
Merge branch 'renovate/golang-1.25.3' into 'main'
...
chore(deps): update golang:1.25.3 docker digest to 69d1009
See merge request unboundsoftware/pagination!43
2025-10-21 14:18:08 +02:00
argoyle
90e56fa252
Merge branch 'renovate/golang-1.x' into 'main'
...
chore(deps): update golang docker tag to v1.25.3
See merge request unboundsoftware/pagination!42
2025-10-14 08:58:28 +02:00
argoyle
040faacceb
Merge branch 'renovate/golang-1.x' into 'main'
...
chore(deps): update golang docker tag to v1.25.2
See merge request unboundsoftware/pagination!41
2025-10-08 09:17:56 +02:00
argoyle
a558130411
Merge branch 'renovate/alessandrojcm-commitlint-pre-commit-hook-9.x' into 'main'
...
chore(deps): update pre-commit hook alessandrojcm/commitlint-pre-commit-hook to v9.23.0
See merge request unboundsoftware/pagination!40
2025-10-02 17:04:33 +02:00
argoyle
67ee742396
Merge branch 'renovate/golang-1.25.1' into 'main'
...
chore(deps): update golang:1.25.1 docker digest to 12640a4
See merge request unboundsoftware/pagination!39
2025-10-01 19:16:51 +02:00
argoyle
a989c9d399
Merge branch 'renovate/golangci-golangci-lint-2.x' into 'main'
...
chore(deps): update pre-commit hook golangci/golangci-lint to v2.5.0
See merge request unboundsoftware/pagination!38
2025-09-22 11:21:15 +02:00
argoyle
7d1420c60a
Merge branch 'renovate/lietu-go-pre-commit-1.x' into 'main'
...
chore(deps): update pre-commit hook lietu/go-pre-commit to v1
See merge request unboundsoftware/pagination!37
2025-09-13 17:22:59 +02:00
argoyle
a8a1c613a4
fix(pagination): handle empty page return case
...
Adds a check for empty pages in the pagination logic to return a
nil slice and empty PageInfo when there are no items to display.
Updates tests to verify the behavior when no more items are
available, ensuring robustness in pagination functionality.
2025-06-16 12:04:52 +02:00
argoyle
8e8bdac22c
fix: update GetPage to check for empty items slice
...
Refactor the GetPage function to check for an empty slice of items
instead of a nil pointer. Update tests to cover cases for nil and
empty slices, ensuring consistent behavior and improved clarity.
2025-06-16 09:09:04 +02:00
argoyle
bb3f7327cd
fix(pagination): handle out-of-bounds slicing in pagination
...
Ensure the pagination function correctly handles out-of-bounds indices
when slicing items. Update the slice logic to prevent slice bounds
errors and add a test case for better coverage of edge cases.
2025-06-15 19:56:47 +02:00
argoyle
9978b6f900
fix: update Codecov badge URL in README
...
Updates the Codecov badge URL in the README to ensure it
correctly points to the project repository. This enhances
documentation clarity and reflects the correct integration
status.
2025-06-10 19:55:02 +02:00
argoyle
26eff55974
feat: initial version
2025-06-07 19:44:54 +02:00