Closed evangineer closed 3 years ago
Have been playing around with the underlying github3.py library used by repoXplorer and have written some proof of concept code that can list out all the branches for a given repo.
Will have a go at hacking repoxplorer-github-organization
to add that functionality.
Perhaps add an --all-branches
option which uses the modified code.
@morucci One concern that has come up with the notion of adding an --all-branches
option is the possibility of double-counting commits.
Any thoughts regarding that?
No, commits are indexed with the sha as uid. If a sha appears in multiples branches, the commit will be flagged by the indexer to be part of multiple refs. A ref is repo-name:branch. So there's no possibility of double counting commits.
Thanks @morucci, I'm digging into the repoxplorer-github-organization
code now!
Satisfied by #64
Where there are multiple branches in a repo, I would like to have an option for
repoxplorer-github-organization
to include all the branches in the generated definition file.Any suggestions re: how to automatically get all the branches for a repo into the definitions file?