#Disable add file option in github
21 messages · Page 1 of 1 (latest)
Lol🤣
Am actually asking because I recently created a collaboration project and I dont want my collaborators to use that option, so I want to know how to block it.
Or what access is best for that. If I give them write access, the option will be availiable but if I give them a triage access it will not but I dont know if they will be able to push to the repo with that triage access
@sick jetty please how can this be done?
@merry crane I also need your help with this please
Any particular reason why you want to force them to use CLI?
Developer experience through code editors, dev tools like CLI etc should very much be customised to the developer's comfort level and understanding. You, as project lead could enforce some etiquettes in the code but should really not enforce ways to stop them or cause hurdle in the way they want to code and collaborate.
If they dont use CLI there can easily be errors in the codes. I want them to be able to create a new branch and then create pull requests instead of pushing directly to main brach. Becase the add file option adds the code directly to main.
I dont know if you git?
Very true. But am scared of having losing really important codes that takes time. Because it has actually happened to me before.
You can protect main branch and force that from being merged.
You can setup CI/CD so that after pushing their code will be auto checked using github actions or some other tool that will ask them to fix those changes , until those are fixed the PR is not considered valid.
Look into this https://codeclimate.com/quality
This sounds cool and better.
Thanks alot @sick jetty . I will look into them and give my feedback later.
the goal is to let them code and do the intended work and then fix the minor changes like spaces/tabs/semicolons/ etc
Very true. Thanks againg sir.
There also husky which many big projects use https://github.com/typicode/husky but this can be overdone with pre commit rules. Either way its a popular tool used to maintain code quality and repo quality.