MCPcopy Create free account
hub / github.com/github/gh-aw / searchOrgWorkflowRepos

Function searchOrgWorkflowRepos

pkg/cli/update_org_search.go:39–43  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

37// It paginates through all code-search results, deduplicates by repository full
38// name, and returns a deterministically sorted slice of "owner/repo" strings.
39func 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

Callers

nothing calls this directly

Calls 3

searchOrgReposByQueryFunction · 0.85
PrintfMethod · 0.45

Tested by

no test coverage detected