Paginate stale label lookup #1

Merged
stephen merged 1 commit from fix-stale-label-pagination into main 2026-06-08 05:15:48 +00:00
Owner

Stale label lookup only read the first repository label page. In repos with many labels, the action could miss an existing stale label and try to recreate it before labeling items.

This uses the existing paginator for label lookup and adds a mock Forgejo regression that places the stale label on page two.

Tested with make test.

Stale label lookup only read the first repository label page. In repos with many labels, the action could miss an existing stale label and try to recreate it before labeling items. This uses the existing paginator for label lookup and adds a mock Forgejo regression that places the stale label on page two. Tested with `make test`.
Paginate stale label lookup
All checks were successful
test / unit (pull_request) Successful in 22s
79c3d1f8dc
stephen referenced this pull request from a commit 2026-06-08 05:15:48 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
rasterstate/forgejo-stale-action!1
No description provided.