dependabot-script
dependabot-script copied to clipboard
No option to provide reviewers with the Dependabot: Azure devops client
I have been using dependabot-script with Azure Devops, but I notice that, in the pull_request_creator.rb
file we do not provide a reviewers
param to azure_creator
method.
Similarly I notice that in the content
object of create_pull_request
method of the azure client, we do not pass any reviewers option.
I see a reviewers
option in the documentation for azure devops' pull request create method: https://docs.microsoft.com/en-us/rest/api/azure/devops/git/pull%20requests/create?view=azure-devops-rest-5.1
Is there a reason, why this was not added? or are there plans to add this feature ?
Thanks in advance!
No reason that I'm aware of - PR welcome!
I was taking just a quick look at the rest api and it seems a bit tricky to add this one. A better way should be to use the branch policies and add a default reviewer.
It would be easier to just use Azure DevOps branch policies to just assign reviewers to every pull request automatically. And you can even set these reviewers based on what directories or files were edited in the pull request