FMCorz / mdk

Moodle Development Kit. A collection of tools meant to make developers' lives easier.
GNU General Public License v3.0
86 stars 47 forks source link

Create `mdk doctor --mastertomain` #222

Closed junpataleta closed 10 months ago

junpataleta commented 10 months ago

As part of the move to switch the master branch to the main branch, we need to create a script that will check for the usages of the master branch in existing Moodle instances and switch them to use the main branch. The mdk doctor command seems to be the most appropriate place to do this.

This will check for instances that still use the master branch. Applying --fix will switch these instances to use the main branch and delete the master branch.

junpataleta commented 10 months ago

I'm closing this as it won't be needed anymore as we're looking into a slightly different approach in https://github.com/FMCorz/mdk/pull/221.