Add support for templates in reviewers/assignees #33256
Unanswered
stephane-julien
asked this question in
Request Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How are you running Renovate?
Self-hosted Renovate
If you're self-hosting Renovate, tell us which platform (GitHub, GitLab, etc) and which version of Renovate.
Azure DevOps Server 2022.1
Please tell us more about your question or problem
I'm running renovate latest (actually 39.82.3) with Azure DevOps Server with a single pipeline for multiple projects. I'm trying to add reviewers and need to specify the exact team name as seen in #17728.
With an hardcoded team name "ProjectName Team", it works well. The problem is that the ProjectName change in every repository lookep up. I searched all the teams with Azure DevOps API and found a Team for every Azure DevOps project, but it is prefixed with ProjectName. Example :
AzureDevOpsTeams.json
The ProjectName can probably extracted from the repository field according to these logs :
repository=Project1/Project1GitRepository
I think this project name can be extracted from the repository with the following template value :
"reviewers": ["{{ lookup (split repository '/') 0 }} Team"],
Unfortunately, the reviewers field is not passed through for templating and I can find the following logs
INFO: {{ lookup (split repository '/') 0 }} Team is neither an Azure DevOps Team nor a user associated with a Team (repository=ACJU.Docker/ACJU.Docker.BaseImage.Dotnet.HelloWorld, baseBranch=master, branch=renovate/master-baseBranchaspnet-dotnet-base-img)
Am I right with my analysis ? If yes, is it possible to add support of templates for reviewers field ?
Logs (if relevant)
No response
Beta Was this translation helpful? Give feedback.
All reactions