Skip to content
This repository was archived by the owner on Jun 29, 2026. It is now read-only.

fix(ci): use correct gh search JSON field names in regenerate#2

Open
0xbrayo wants to merge 1 commit into
gptme:masterfrom
0xbrayo:master
Open

fix(ci): use correct gh search JSON field names in regenerate#2
0xbrayo wants to merge 1 commit into
gptme:masterfrom
0xbrayo:master

Conversation

@0xbrayo

@0xbrayo 0xbrayo commented Jun 23, 2026

Copy link
Copy Markdown
Member

gh search repos uses fullName/stargazersCount/language, not the GraphQL-style nameWithOwner/stargazerCount/primaryLanguage names. The mismatch made every topic query exit non-zero, so the registry regenerated with zero entries (no repos, including tagged skills, were ever discovered).

Switch to the supported field names, derive type badges from the matched search topics (repositoryTopics isn't available via search), and aggregate multiple topics per repo.

gh search repos uses fullName/stargazersCount/language, not the
GraphQL-style nameWithOwner/stargazerCount/primaryLanguage names. The
mismatch made every topic query exit non-zero, so the registry
regenerated with zero entries (no repos, including tagged skills, were
ever discovered).

Switch to the supported field names, derive type badges from the
matched search topics (repositoryTopics isn't available via search),
and aggregate multiple topics per repo.
@0xbrayo

0xbrayo commented Jun 24, 2026

Copy link
Copy Markdown
Member Author

@TimeToBuildBob review

@TimeToBuildBob TimeToBuildBob left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The diff looks correct — the old JSON field names (nameWithOwner, stargazerCount, primaryLanguage, repositoryTopics) don't match what gh search actually outputs. The new fields (fullName, stargazersCount, language) are the real API field names, and the _topics accumulative approach correctly handles repos matching multiple registry topics.

Also good: dedup by fullName is consistent with the new field name, and the removed extract_topics helper was dead code after the schema change. LGTM.

@0xbrayo

0xbrayo commented Jun 24, 2026

Copy link
Copy Markdown
Member Author

merge the PR

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants