From 00496f8a72abc2167647113f00cd33c384cebb51 Mon Sep 17 00:00:00 2001 From: Bapung Date: Sun, 11 Jan 2026 17:57:07 +0800 Subject: [PATCH] fix status filter --- config/manager/kustomization.yaml | 2 +- internal/gitea/client.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/manager/kustomization.yaml b/config/manager/kustomization.yaml index 2e59183..edd4eac 100644 --- a/config/manager/kustomization.yaml +++ b/config/manager/kustomization.yaml @@ -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 diff --git a/internal/gitea/client.go b/internal/gitea/client.go index b2516c6..09f7358 100644 --- a/internal/gitea/client.go +++ b/internal/gitea/client.go @@ -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