I'm exciting about this announcement!
https://dependabot.com/blog/introducing-config-files/
On the other hand, I want a means to easily switch to config.yml. So I want the feature to dump the current configuration as it.
@iwata yes agreed, we're planning on adding this feature soon!
@feelepxyz
Have you made any progress?
@iwata sorry haven't managed to get to this yet, we've been busy working on making our existing languages more robust and have a few other big projects planned before I'll get to this unfortunately.
@iwata I recorded what is being sent to https://api.dependabot.com/update_configs/ when clicking the "Update settings" button in the Dependabot dashboard:
{
"data": {
"attributes": {
"automerge-rule-development-deps": "all",
"automerge-rule-runtime-deps": "all",
"automerge-whitelist": [],
"custom-labels": null,
"default-assignees": null,
"default-milestone": null,
"default-reviewers": null,
"directory": "/",
"language": "javascript",
"last-update-run-finished-at": "2019-07-24T09:58:18.958Z",
"last-update-run-issue": null,
"last-update-run-status": "processed",
"lockfile-only": false,
"monitored-files": [
"/package.json",
"/yarn.lock"
],
"next-update-runnable-at": "2019-07-24T09:55:32.857Z",
"package-manager": "npm_and_yarn",
"requirements-update-strategy": "auto",
"security-updates-only": false,
"target-branch": null,
"update-schedule": "daily",
"update-subdependencies": false
},
"id": "72357",
"relationships": {
"repo": {
"data": {
"id": "183629722",
"type": "repos"
}
}
},
"type": "update-configs"
},
"included": [
{
"attributes": {
"default-branch": "master",
"fork": false,
"github-id": 183629722,
"github-url": "https://github.com/bennyn/swaxios",
"installation-state": "active",
"name": "swaxios",
"primary-language": "typescript",
"private": false,
"using-config-file": false
},
"id": "183629722",
"relationships": {
"account": {
"data": {
"id": "469989",
"type": "accounts"
}
},
"update-configs": {
"data": [
{
"id": "72357",
"type": "update-configs"
}
]
}
},
"type": "repos"
}
]
}
With the information above it would be possible to generate a JSON to YML generator which respects the Dependabot config files format.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs within seven days. Thank you for your contributions.
There is now a button in the Dependabot.com dashboard that will generate you a PR with a GitHub-native Dependabot config file.
Most helpful comment
@iwata yes agreed, we're planning on adding this feature soon!