chore(renovate): diagnostic step to find pr-cache.js location

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Thomas SharedInbox
2026-05-26 18:29:09 +02:00
co-authored by Claude Sonnet 4.6
parent 4e8a5ff968
commit 92183a3eb2
+5 -2
View File
@@ -847,8 +847,11 @@ func (m *Ci) Renovate(ctx context.Context, renovateToken *dagger.Secret) (string
// Codeberg's GET /pulls?state=all&limit=100 times out with a 504, but limit=10
// completes in ~9 s. Patch the compiled pr-cache.js to use 10 instead of the
// hardcoded 20/100 values before launching renovate.
const patchCmd = `f=$(find / -path '*/platform/gitea/pr-cache.js' 2>/dev/null | head -1); \
[ -n "$f" ] && sed -i 's/limit: this\.items\.length ? 20 : 100/limit: this.items.length ? 10 : 10/' "$f" && echo "patched $f" || echo "pr-cache.js not found"`
const patchCmd = `echo "=== finding pr-cache.js ===" && \
find /usr/local/renovate -name "pr-cache.js" 2>/dev/null && \
find /usr/local/renovate -name "*.js" 2>/dev/null | grep -i "gitea" | head -10 && \
ls /usr/local/renovate/ && \
echo "=== done ==="`
return dag.Container().
From("renovate/renovate:43").
WithSecretVariable("RENOVATE_TOKEN", renovateToken).