From df9cb3f6358d1e60174630bdcc9326eab1c88bae Mon Sep 17 00:00:00 2001 From: mrT23 Date: Thu, 7 Aug 2025 08:25:17 +0300 Subject: [PATCH] docs: improve JSON formatting examples and clarify Docker build note --- docs/docs/installation/github.md | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/docs/docs/installation/github.md b/docs/docs/installation/github.md index 928409b4..896696de 100644 --- a/docs/docs/installation/github.md +++ b/docs/docs/installation/github.md @@ -435,13 +435,16 @@ If you encounter rate limiting: ``` **Error: "Invalid JSON format"** + - **Solution**: Check that arrays are properly formatted as JSON strings: - ```yaml - # Correct + +```yaml + +Correct: config.fallback_models: '["model1", "model2"]' -# Incorrect (interpreted as a YAML list, not a string) +Incorrect (interpreted as a YAML list, not a string): config.fallback_models: ["model1", "model2"] - ``` +``` #### Debugging Tips @@ -611,9 +614,10 @@ For example: `GITHUB.WEBHOOK_SECRET` --> `GITHUB__WEBHOOK_SECRET` 2. Build a docker image that can be used as a lambda function ```shell - # Note: --target github_lambda is optional as it's the default target docker buildx build --platform=linux/amd64 . -t codiumai/pr-agent:github_lambda --target github_lambda -f docker/Dockerfile.lambda ``` + (Note: --target github_lambda is optional as it's the default target) + 3. Push image to ECR