What's the recommended approach for sharing the pr_agent.toml file with multiple Repos? #1966
Replies: 4 comments 1 reply
-
|
Interested in this as well, in a GitLab CI webhook context. I was considering the easiest might be a dedicated instance of PR-agent per group of configurations with configurations set at the instance level rather than in repositories. This might not be affordable to everyone though and has it's own challenges. Ideally, there could be some kind of inheritance in a similar manner to how RenovateBot does it: each config file in a repo can reference another repo and automatically includes its configurations. Another approach, if you running PR agent through a CI pipeline is to set the config in the pipeline rather than in config file and I guess you can have some kind of "includes" to import a shared job definition in Azure DevOps? This is a guess, I don't know Azure but this is something that would be doable in GitLab CI. |
Beta Was this translation helpful? Give feedback.
-
|
If a repo is created using the recommended naming (pr-agent-settings) and a .pr_agent.toml file is located within it, why can't the qodo agent pull that config from that repo? Provided the PAT has sufficient permissions to read that repo of course. Is there a blocking problem or it's just not implemented, @mrT23 ? |
Beta Was this translation helpful? Give feedback.
-
|
Hi @steve-orbussoftware @gaeljw @LawrenceMantin , thank you so much for adding those questions. |
Beta Was this translation helpful? Give feedback.
-
|
@steve-orbussoftware Instead of trying to share the pr_agent.toml file, we took the approach of using environment variables within our pipeline. This pr_agent job is configured to be a template so that it can be referenced from other pipelines. However, the pr_agent is spun up each time the pipeline runs, so I feel that it looses context for each follow-up commit. I have a ticket open with Qodo to see if there's a better approach (i.e. hosting it in our own container), but still waiting for a response.
|
Beta Was this translation helpful? Give feedback.



Uh oh!
There was an error while loading. Please reload this page.
-
Our company has many Azure DevOps repos that I would like to use the same pr_agent.toml file to maintain consistency and reduce redundancy. What's the recommended approach, and are there any examples of azure-pipeline to make this work? Thanks.
Beta Was this translation helpful? Give feedback.
All reactions