We have an issue with groups not maintaining their projects or repos and removing old and unused feature branches. Is there a report that can be generated that shows last access or commits on all projects, repos, and/or branches. Is there an add-on to do such a thing.
One option is to use regular Git commands to list branches and the last commit date for each branch. This command should do that for you:
for branch in `git branch -r | grep -v HEAD`;do echo -e `git show --format="%ci %cr" $branch | head -n 1` \\t$branch;done | sort -r
The only app that I know that you can use to get similar information is Awesome Graphs, if there is no report that does it you can always export the raw data and generate a report from it.
Is there a way to script this so I don't have to go through each repo and run this? I mean like a loop that goes through each project, then each repo of the project and then this query
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You could use the REST API to get the projects and corresponding repos, but you would have to clone each one and then run the Git command on the clone.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.