From 172b5f0787bfece9fb16110bb7bb4b32e7a357e2 Mon Sep 17 00:00:00 2001 From: koid Date: Wed, 15 Nov 2023 13:20:32 +0900 Subject: [PATCH 1/3] add instructions to lambda function section --- INSTALL.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/INSTALL.md b/INSTALL.md index d0298033..1d9ec5cd 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -289,7 +289,8 @@ docker push codiumai/pr-agent:github_app # Push to your Docker repository ``` 4. Create a lambda function that uses the uploaded image. Set the lambda timeout to be at least 3m. 5. Configure the lambda function to have a Function URL. -6. Go back to steps 8-9 of [Method 5](#run-as-a-github-app) with the function url as your Webhook URL. +6. In the environment variables of the Lambda function, specify `AZURE_DEVOPS_CACHE_DIR` to a writable location such as /tmp. (see [#443](https://github.com/Codium-ai/pr-agent/issues/443)) +7. Go back to steps 8-9 of [Method 5](#run-as-a-github-app) with the function url as your Webhook URL. The Webhook URL would look like `https:///api/v1/github_webhooks` --- From 71b421efa3a9877115b0f7fae5f51d099b32b6d6 Mon Sep 17 00:00:00 2001 From: Phill Zarfos Date: Sun, 3 Dec 2023 21:54:19 -0500 Subject: [PATCH 2/3] Updated requirements.txt for Python 3.12 --- requirements.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/requirements.txt b/requirements.txt index 3e49bfa6..2f38da7b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,8 +1,8 @@ -aiohttp==3.8.4 +aiohttp==3.9.1 atlassian-python-api==3.39.0 azure-devops==7.1.0b3 -boto3==1.33.1 -dynaconf==3.1.12 +boto3==1.33.6 +dynaconf==3.2.4 fastapi==0.99.0 GitPython==3.1.32 google-cloud-aiplatform==1.35.0 @@ -16,10 +16,10 @@ pinecone-client pinecone-datasets @ git+https://github.com/mrT23/pinecone-datasets.git@main pytest==7.4.0 PyGithub==1.59.* -PyYAML==6.0 +PyYAML==6.0.1 python-gitlab==3.15.0 retry==0.9.2 starlette-context==0.3.6 -tiktoken==0.4.0 +tiktoken==0.5.2 ujson==5.8.0 uvicorn==0.22.0 From 25d1e84b7fefc18bb526441e5661710b093a91b0 Mon Sep 17 00:00:00 2001 From: mrT23 Date: Tue, 5 Dec 2023 16:54:18 +0200 Subject: [PATCH 3/3] docs: Update issue link in INSTALL.md and enhance key formatting in pr_description.py --- INSTALL.md | 2 +- pr_agent/tools/pr_description.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/INSTALL.md b/INSTALL.md index 6f52614e..4fee4039 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -292,7 +292,7 @@ docker push codiumai/pr-agent:github_app # Push to your Docker repository ``` 4. Create a lambda function that uses the uploaded image. Set the lambda timeout to be at least 3m. 5. Configure the lambda function to have a Function URL. -6. In the environment variables of the Lambda function, specify `AZURE_DEVOPS_CACHE_DIR` to a writable location such as /tmp. (see [#443](https://github.com/Codium-ai/pr-agent/issues/443)) +6. In the environment variables of the Lambda function, specify `AZURE_DEVOPS_CACHE_DIR` to a writable location such as /tmp. (see [link](https://github.com/Codium-ai/pr-agent/pull/450#issuecomment-1840242269)) 7. Go back to steps 8-9 of [Method 5](#run-as-a-github-app) with the function url as your Webhook URL. The Webhook URL would look like `https:///api/v1/github_webhooks` diff --git a/pr_agent/tools/pr_description.py b/pr_agent/tools/pr_description.py index 501de707..0268e740 100644 --- a/pr_agent/tools/pr_description.py +++ b/pr_agent/tools/pr_description.py @@ -257,7 +257,8 @@ class PRDescription: # except for the items containing the word 'walkthrough' pr_body = "" for idx, (key, value) in enumerate(self.data.items()): - pr_body += f"## {key}:\n" + key_publish = key.strip(':').replace('_', ' ').capitalize() + pr_body += f"## {key_publish}\n" if 'walkthrough' in key.lower(): # for filename, description in value.items(): if self.git_provider.is_supported("gfm_markdown"):