Codium-ai / pr-agent

🚀CodiumAI PR-Agent: An AI-Powered 🤖 Tool for Automated Pull Request Analysis, Feedback, Suggestions and More! 💻🔍
Apache License 2.0
6.01k stars 584 forks source link

we will have to understand architecture #1178

Closed prasadnaikg-ldp closed 2 months ago

prasadnaikg-ldp commented 2 months ago

We have used this following pipeline and working fine .

we will have to understand its architecture also, like does it send our code to their server for analysis. or how otherwise the analysis is happening , or is their code being fetched inside the docker container in pipeline

Run as a GitLab Pipeline You can use a pre-built Action Docker image to run PR-Agent as a GitLab pipeline. This is a simple way to get started with PR-Agent without setting up your own server.

(1) Add the following file to your repository under .gitlab-ci.yml:

stages:

pr_agent_job: stage: pr_agent image: name: codiumai/pr-agent:latest entrypoint: [""] script:

GITLAB_PERSONAL_ACCESS_TOKEN: Your GitLab personal access token.

OPENAI_KEY: Your OpenAI key.

Note that if your base branches are not protected, don't set the variables as protected, since the pipeline will not have access to them.

mrT23 commented 2 months ago

I don't understand your request. Use clearer language.

In any case, review our privacy policy https://pr-agent-docs.codium.ai/overview/data_privacy/

When you use GitHub action, the logic runs on your GitHub servers.

prasadnaikg-ldp commented 2 months ago

Hi @mrT23, we have implemented the PR agent in GitLab via a pipeline, and I have a few questions regarding its architecture. Specifically, I'm curious about how the analysis is conducted. Does it send our code to their server for analysis, or is the analysis conducted within our Docker container in the pipeline? Alternatively, is their code fetched into our Docker container for the analysis?

mrT23 commented 2 months ago

"Does it send our code to their server "

servers of who ?

prasadnaikg-ldp commented 2 months ago

Pr agent server For instance, when we use the review command with the PR agent, I'm curious about the underlying process during the code review. Does it send our code to the PR agent server, or is the review conducted differently? An architectural overview of the workflow would greatly enhance our understanding.

mrT23 commented 2 months ago

https://pr-agent-docs.codium.ai/overview/data_privacy/

With self-hosting, your data is yours. It is not sent to pr-agent servers, just to your LLM provider.

image