robota-suite / robota-core

A Python package for reading in elements of GitLab and GitHub repositories, for further analysis.
https://robota-core.readthedocs.io
MIT License
0 stars 8 forks source link

Remove hard-coded references to "master" branch #5

Open MeltedHyperion7 opened 1 month ago

MeltedHyperion7 commented 1 month ago

[Copied from Gitlab.]

The user of RoboTA Core should be able to set the name of the development branch, rather than having this hard-coded.

lourencofsilva commented 1 month ago

configreader.py already takes in a configuration variable for the default branch to use. However, many parts of the codebase still use "master" hardcoded (e.g. commit.py:106) or use "master" as default instead of "main". This should be changed to use the config variable. It is also a good idea to try to get further hardcoded URL's from gitlab's API instead.