mirror of
https://github.com/bapung/gitea-runner-operator.git
synced 2026-06-21 23:48:43 +00:00
fix status filter
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user