mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-07-05 13:20:39 +08:00
@ -159,6 +159,9 @@ cp pr_agent/settings/.secrets_template.toml pr_agent/settings/.secrets.toml
|
|||||||
|
|
||||||
## Deploy as a Lambda Function
|
## Deploy as a Lambda Function
|
||||||
|
|
||||||
|
Note that since AWS Lambda env vars cannot have "." in the name, you can replace each "." in an env variable with "__".<br>
|
||||||
|
For example: `GITHUB.WEBHOOK_SECRET` --> `GITHUB__WEBHOOK_SECRET`
|
||||||
|
|
||||||
1. Follow steps 1-5 from [here](#run-as-a-github-app).
|
1. Follow steps 1-5 from [here](#run-as-a-github-app).
|
||||||
2. Build a docker image that can be used as a lambda function
|
2. Build a docker image that can be used as a lambda function
|
||||||
```shell
|
```shell
|
||||||
@ -246,4 +249,4 @@ After you set up AWS CodeCommit using the instructions above, here is an example
|
|||||||
PYTHONPATH="/PATH/TO/PROJECTS/pr-agent" python pr_agent/cli.py \
|
PYTHONPATH="/PATH/TO/PROJECTS/pr-agent" python pr_agent/cli.py \
|
||||||
--pr_url https://us-east-1.console.aws.amazon.com/codesuite/codecommit/repositories/MY_REPO_NAME/pull-requests/321 \
|
--pr_url https://us-east-1.console.aws.amazon.com/codesuite/codecommit/repositories/MY_REPO_NAME/pull-requests/321 \
|
||||||
review
|
review
|
||||||
```
|
```
|
||||||
|
Reference in New Issue
Block a user