#package-manager #directory #generates #scan #yaml #dependabot #config

app dependabot-generator

Scans directories and generates a dependabot config based on found package manager files

4 releases

0.1.3 May 9, 2022
0.1.2 May 9, 2022
0.1.1 May 8, 2022
0.1.0 Apr 25, 2022

#2045 in Development tools

MIT license

8KB
143 lines

rust-dependabot-generator

Generates a dependabot config for a given directory.

Scans a directory for package manager config files, and generates the dependabot.yaml.

Note This is a work in progress, and not everything works properly, assumptions are made, things are hardcoded 👌, but it provides at least a starting point for a config file.

Usage

cargo run ~/workspace/rust-dependabot-generator

Scanning directory ~/rust-dependabot-generator.
Found package managers: cargo.

The program will write the dependabot yaml file to disk.

Acknowledgements

This is based on Taiki Endo's great work with dependabot-config crate; without it, I wouldn't have been able to get such a complete version working in such little time.

Dependencies

~2.8–4MB
~73K SLoC