mirror of
https://github.com/bapung/gitea-runner-operator.git
synced 2026-06-22 07:58:44 +00:00
fix status filter
This commit is contained in:
@@ -5,7 +5,7 @@ kind: Kustomization
|
|||||||
images:
|
images:
|
||||||
- name: controller
|
- name: controller
|
||||||
newName: ghcr.io/bapung/gitea-runner-operator
|
newName: ghcr.io/bapung/gitea-runner-operator
|
||||||
newTag: sha-cb20968
|
newTag: sha-0136f0e
|
||||||
|
|
||||||
patchesStrategicMerge:
|
patchesStrategicMerge:
|
||||||
- image_pull_secret_patch.yaml
|
- image_pull_secret_patch.yaml
|
||||||
|
|||||||
@@ -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
|
// 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) {
|
func (c *HTTPClient) fetchWorkflowJobs(ctx context.Context, endpoint, authToken string, labels []string) (int, error) {
|
||||||
totalCount := 0
|
totalCount := 0
|
||||||
statuses := []string{"queued", "waiting", "pending"}
|
statuses := []string{"5"} // 5 = waiting/queued in Gitea internal ID
|
||||||
|
|
||||||
for _, status := range statuses {
|
for _, status := range statuses {
|
||||||
page := 1
|
page := 1
|
||||||
|
|||||||
Reference in New Issue
Block a user