searchOrgWorkflowRepos searches an organization's repositories for compiled agentic workflow lock files (.lock.yml) in .github/workflows. It paginates through all code-search results, deduplicates by repository full name, and returns a deterministically sorted slice of "owner/repo" strings.
(ctx context.Context, org string, workflowNames []string, verbose bool)
| 37 | // It paginates through all code-search results, deduplicates by repository full |
| 38 | // name, and returns a deterministically sorted slice of "owner/repo" strings. |
| 39 | func searchOrgWorkflowRepos(ctx context.Context, org string, workflowNames []string, verbose bool) ([]string, error) { |
| 40 | updateOrgSearchLog.Printf("Searching org %q for workflow repos (%d workflow name filters)", org, len(workflowNames)) |
| 41 | query := buildOrgWorkflowSearchQuery(org, workflowNames) |
| 42 | return searchOrgReposByQuery(ctx, query, verbose) |
| 43 | } |
| 44 | |
| 45 | // buildOrgWorkflowSearchQuery constructs the org-mode code-search query for |
| 46 | // lock.yml workflow files. When workflowNames is empty, or every candidate |
nothing calls this directly
no test coverage detected