gh-cli-for-education / gh-edu

A pluggable extension of gh-cli to assist educators and students using GitHub Education
https://github.com/gh-cli-for-education/TFG-2122-Cristo-Garcia-Gonzalez
3 stars 0 forks source link

config.json and upgrading gh-edu #10

Closed crguezl closed 2 years ago

crguezl commented 2 years ago

@GGCristo

When a user upgrades gh-edu to the last version with s.t. like gh instal gh-edu, since the file config.json belongs to the repo and more than likely the user has changed the config.json with organizations info, etc. conflicts may arise.

It seems that config.json is an independent file and must be stored in a different user repo?

GGCristo commented 2 years ago

I don't fully understand. config.json doesn't belong to the repo anymore. Now when the user execute any command the program create a fresh config in case it doesn't exists. Which is more likely to happen in the first execution

crguezl commented 2 years ago

OK. Seems my version was rusty.

✗ git ls-files config.json 
config.json

I see in the new version it is removed

crguezl commented 2 years ago

Ya veo que ha cambiado bastante