Comments (3)
@yosi-optimove Hey! I bumped into the same problem a couple of hours ago! I hope my approach will help you ✨
- First, the Webhook URL you must use is:
<YOUR_ENDPOINT>/api/v1/github_webhooks
- Make sure your environment variables are set properly:
In my case, I tested first from my terminal using NGROK with the following variables. Note that I expose port 3000 to my PC's 8080 so I can run NGROK the tunnel to port 8080 (exposed to GitHub)
docker run --rm -it -e OPENAI.KEY=xxx -e GITHUB.DEPLOYMENT_TYPE=app -e GITHUB.APP_ID=12345 -e GITHUB.WEBHOOK_SECRET=xxxxx -e GITHUB.PRIVATE_KEY="xxx" -p 8080:3000 my-agent:latest
- Once this works, you must set
OPENAI.KEY, GITHUB.DEPLOYMENT_TYPE, GITHUB.APP_ID, GITHUB.WEBHOOK_SECRET, GITHUB.PRIVATE_KEY
in your Cloud Run or GCP product you are using as environment variables. Trust me, for me, is working smooth as butter 🧈 - I use GitHub Action to deploy the forked repo to Cloud Run. Make sure to set the memory, CPU, concurrency, and instances according to your demand (so you won't spend a lot of money on this 😉 )
Cheers! Hope this helps! 🚀
from pr-agent.
@yosi-optimove , I assume you are looking for the PR-Agent Pro app that is hosted and managed by CodiumAI.
Take a look at:
https://pr-agent-docs.codium.ai/installation/pr_agent_pro/
https://www.codium.ai/blog/pr-agent-for-github-teams-enterprise-how-to-install/
from pr-agent.
@coditamar
Thank you for the quick response and for the resources you provided. However, there might have been a slight misunderstanding regarding my setup. I am utilizing the free edition of the PR-Agent, specifically aiming to deploy it as a GitHub App within our internal GitHub environment hosted on Google Cloud Platform (GCP), as outlined in the GitHub App Deployment Guide.
Regrettably, I'm encountering a "405 Method Not Allowed" error within the pod logs, indicating an issue with the handling of POST requests. The resources you shared seem to pertain to the PR-Agent Pro version, which, while informative, doesn't directly address the challenges I'm facing with the free edition.
Could you possibly provide further insights or assistance tailored to deploying the GitHub App on GCP using the free edition? Any specific configuration advice, common pitfalls, or a checklist to ensure the deployment meets CodiumAI's requirements would be greatly appreciated.
Additionally, could it be that the functionality I'm attempting to implement is only available with the Pro edition?
from pr-agent.
Related Issues (20)
- Replace 👀 with ❤️ when response is completed HOT 2
- Have `/config` print the working config as well as all the options HOT 1
- Do we take any benchmarks between different LLMs? HOT 1
- Add label base on pull request description. HOT 6
- PR-Agent Chrome Extension: AWS CodeCommit HOT 1
- Azure DevOps output for suggestions is not aligned correctly in latest release HOT 2
- Update tiktoken to use gpt-4o HOT 2
- [Feature Request] Include AI model name in automated PR reviews HOT 3
- Vertex AI - ModuleNotFoundError: No module named 'vertexai.preview.generative_models' HOT 2
- Tiktoken 0.7.0 read-only system error in AWS Lamda HOT 4
- UTF-8 undecodable files checked in breaks commands HOT 4
- Provide a built docker image HOT 6
- [Feature Request] Replying to repetitive committable code suggestions using threads HOT 3
- [Feature Request] Reference existing files in extra_instructions HOT 3
- [GitLab] 401: Unauthorized on random MRs HOT 1
- Multi-line extra_instructions produce invalid yaml format in the 'relevant configurations' section HOT 1
- Add logging message when files are filtered due to default extensions HOT 1
- [BUG] PR title not updated if using description markers HOT 2
- [FEATURE] Add GitHub Entreprise support HOT 4
- YAML Fallback parsing method removes all generated content HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pr-agent.