mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-10-29 20:05:25 +08:00
ci(docs): report sanitized Context7 registration errors
Co-authored-by: multica-agent <[email protected]>
This commit is contained in:
co-authored by
multica-agent
parent
cb2fd12633
commit
46e5241e09
@@ -54,6 +54,11 @@ jobs:
|
||||
'docsRepoUrl': 'https://github.com/langbot-app/LangBot',
|
||||
'private': False})
|
||||
report.append('Registration HTTP status: ' + str(status))
|
||||
for field in ('error', 'message'):
|
||||
detail = result.get(field)
|
||||
if isinstance(detail, str):
|
||||
report.append('Registration ' + field + ': ' +
|
||||
json.dumps(detail.replace(key, '[REDACTED]')[:500]))
|
||||
registered = result.get('libraryName')
|
||||
if isinstance(registered, str) and registered.lower() == library:
|
||||
report.append('Registered library: ' + library)
|
||||
|
||||
Reference in New Issue
Block a user