tinglesoftware / dependabot-azure-devops

Tools for updating dependencies in Azure DevOps repositories using https://dependabot.com
MIT License
191 stars 62 forks source link

System.ComponentModel.DataAnnotations.ValidationException: The Directory field is required. #1275

Closed MarkTallentire closed 3 weeks ago

MarkTallentire commented 1 month ago

Describe the bug Erorr thrown when running dependabot server System.ComponentModel.DataAnnotations.ValidationException: The Directory field is required.

Directory field is optional if directories is set based on the official dependabot configuration. https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#directories

Categorization

To Reproduce Steps to reproduce the behavior: Run the Azure deployment of the Dependabot Server. Setup a configuration such as:

version: 2
open-pull-requests-limit: 10

updates:
  - package-ecosystem: "nuget"
    directories: 
      - "/src/*"
    schedule:
      interval: "daily"
    target-branch: "develop"
    commit-message:      
      prefix: "[Chore]"

Expected behavior For the dependabot configuration to be processed

Screenshots

image

Server (please complete the following information): West Europe Latest (Downloaded 15/08/2024)

Additional context Add any other context about the problem here.

rhyskoedijk commented 1 month ago

It looks like the server component doesn't support directories yet, you can see the options it supports here: https://github.com/tinglesoftware/dependabot-azure-devops/blob/b125f1fc6f41d979838498c2fe7832f0aa554ca8/server/Tingle.Dependabot/Workflow/UpdateRunner.cs#L319-L356

mburumaxwell commented 3 weeks ago

Resolved in https://github.com/tinglesoftware/dependabot-azure-devops/pull/1294