I was looking through the PyGithub documentation https://pygithub.readthedocs.io/en/latest/introduction.html but I can’t find any function that returns the default branch.
In the examples, “main” is used but “main” is not always the default. It could be “master” or some other user specified branch.
Just wondering if there’s a way to do this with PyGithub.