Change type of property job.commit-message-options.include-scope to bool#408
Conversation
CommitOptions.IncludeScope as bool instead of stringjob.commit-message-options.include-scope to bool
|
@brettfo tagging for visibility, is it possible to get your change updated in CLI too? It is currently causing errors when doing NuGet updates in tinglesoftware/dependabot-azure-devops, see #1548 (comment) |
|
@rhyskoedijk Is this what you had in mind? Allow the NuGet updater to parse |
@brettfo that looks like a better fix. I'm still not really sure what is the correct type and value of this |
The Ruby code in dependabot-core always treats this as a |
Given this
dependabot.yml:Dependabot-CLI will generate this
job.json:{ "job": { "package-manager": "nuget", "source": { ...omitted for brevity }, "commit-message-options": { "include-scope": "true" } } }After dependabot/dependabot-core#11249 was merged in v0.292.0, the above config causes JSON deserialisation errors in the NuGet updater because
include-scopeis expected to bebool, notstring.Example:
This change fixes the error by converting the the property to
boolso that it matches the dependabot-core model:{ "job": { "package-manager": "nuget", "source": { ...omitted for brevity }, "commit-message-options": { "include-scope": true } } }