Repository navigation
ci: claim the Context7 library and refresh it - #84
Conversation
Context7 indexed this repository on October 8, 2026. A claimed library has an admin panel and higher refresh limits, and Context7 verifies the claim through the url and public_key in context7.json. The public_key is the maintainer's public account key, which Context7 designs to be committed. Add a workflow that asks Context7 to refresh the index after each push to main that changes the README, context7.json, docs/, or examples/. The release docs no longer ask for a manual refresh. The workflow's request was run locally against the API and returned "Refresh started successfully". It reads the CONTEXT7_API_KEY repository secret, which is set.
|
The first run of the refresh workflow failed. curl timed out after 60
seconds with no response, and later calls returned HTTP 400
{"error":"too-early","message":"... Minimum 10 days required between
updates."}. Context7 limits how often one library refreshes, so the
workflow failed on most pushes to main.
Allow 180 seconds for the response, print the body, and end with a
workflow notice when Context7 answers too-early. Any other non-200
answer still fails the job. Against the live API, the old script
exited 56 on the too-early answer and the new script exits 0 with the
notice.
|
@greptileai Please review the latest commit 8ef3856. The first refresh run on solid-objects-js main timed out, and later calls returned HTTP 400 too-early (Context7 allows one refresh every 10 days). The workflow now allows 180 seconds, prints the body, ends with a notice on too-early, and still fails on any other non-200 answer. Against the live API the old script exited 56 and the new one exits 0. |
Why
Context7 indexed this repository on October 8, 2026, as part of the agent discoverability plan (R4). Claiming the library unlocks its admin panel and higher refresh limits. Context7 verifies a claim through the
urlandpublic_keyfields incontext7.json. Thepublic_keyis the maintainer's public account key, and Context7 designs it to be committed.What changes
context7.jsonaddsurlandpublic_key. The other fields do not change..github/workflows/context7-refresh.ymlasks Context7 to refresh the index after each push tomainthat changes the README,context7.json,docs/, orexamples/. It reads theCONTEXT7_API_KEYrepository secret, which is set. It uses no third-party action, and it runs withcontents: read.Validation
actionlintpasses on the new workflow.run:script, run locally with the same key, returned{"message":"Refresh started successfully"}.context7.jsonparses, and the new fields come beforeprojectTitle.After merge, the maintainer clicks Claim Library on the Context7 admin page to finish the claim.