fix status filter

This commit is contained in:
2026-01-11 17:57:07 +08:00
parent 0136f0ee77
commit 00496f8a72
2 changed files with 2 additions and 2 deletions

View File

@@ -5,7 +5,7 @@ kind: Kustomization
images:
- name: controller
newName: ghcr.io/bapung/gitea-runner-operator
newTag: sha-cb20968
newTag: sha-0136f0e
patchesStrategicMerge:
- image_pull_secret_patch.yaml

View File

@@ -153,7 +153,7 @@ func (c *HTTPClient) getQueuedRunsGlobal(ctx context.Context, giteaURL, authToke
// fetchWorkflowJobs fetches workflow jobs from a given endpoint with label filtering and pagination
func (c *HTTPClient) fetchWorkflowJobs(ctx context.Context, endpoint, authToken string, labels []string) (int, error) {
totalCount := 0
statuses := []string{"queued", "waiting", "pending"}
statuses := []string{"5"} // 5 = waiting/queued in Gitea internal ID
for _, status := range statuses {
page := 1