dependabot-script icon indicating copy to clipboard operation
dependabot-script copied to clipboard

No option to provide reviewers with the Dependabot: Azure devops client

Open radasa272 opened this issue 4 years ago • 3 comments

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!

radasa272 avatar Oct 17 '19 16:10 radasa272

No reason that I'm aware of - PR welcome!

greysteil avatar Oct 17 '19 19:10 greysteil

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.

MO2k4 avatar Jan 02 '20 09:01 MO2k4

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

image image

tallguyjenks avatar Jul 22 '21 15:07 tallguyjenks