Commit Graph
49 Commits
Author SHA1 Message Date
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