Add Project.tomls to all your repos!

I’ve made a Gist that lets you auto-generate pull requests which will add Project.toml to all your repos! It uses Stefan Karpinski’s gen_project.jl to generate Project.toml files.

You can find it here:
https://gist.github.com/asinghvi17/f20d14fa20743ef70414fc21703a9555

It works by using the GitHub.jl library to fork all of the repos given as command-line arguments into a user’s account, and then clones them, generates a Project.toml, pushes it to the forked repo, and makes a pull request!

I have only tested this on MacOS. It should work wherever a Git install and Julia are available, though!

8 Likes

FYI, here is a similar (more “low-tech”) script I wrote. It could be handy if you don’t want to set up the github token. https://gist.github.com/tkf/eee56c7a989530fdaa87471333d0c06a

2 Likes