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

Function searchOrgLockWorkflowRepos

pkg/cli/upgrade_org.go:314–317  ·  view source on GitHub ↗

searchOrgLockWorkflowRepos searches an organization's repositories for compiled agentic workflow lock files (.lock.yml) in .github/workflows. This is the same discovery strategy used by the update command so both commands operate on the same set of repositories.

(ctx context.Context, org string, verbose bool)

Source from the content-addressed store, hash-verified

312// This is the same discovery strategy used by the update command so both
313// commands operate on the same set of repositories.
314func searchOrgLockWorkflowRepos(ctx context.Context, org string, verbose bool) ([]string, error) {
315 query := fmt.Sprintf(`org:%s path:.github/workflows filename:.lock.yml`, org)
316 return searchOrgReposByQuery(ctx, query, verbose)
317}
318
319// createIssueForUpgradeOrgRepo opens a GitHub issue in the target repository
320// to notify maintainers that agentic workflow upgrades are available. Any

Callers

nothing calls this directly

Calls 1

searchOrgReposByQueryFunction · 0.85

Tested by

no test coverage detected