Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stats - Adding stats CLI for future usage #89

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft

Stats - Adding stats CLI for future usage #89

wants to merge 3 commits into from

Conversation

ford-at-aws
Copy link
Contributor

This is the working script last used to get metrics for our tributaries. Must be run locally with AWS network access.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a ton of wrapper code around git. I don't love that it's all in Python using subprocess and os.path for several reasons (looks like some shell injection avenues, we prefer using Path from pathlib, etc). Could you look at what it would take to have this use GitPython instead? https://gitpython.readthedocs.io/en/stable/

Or rewrite it in Bash, this would be like 20 lines of shell script.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you think about https://github.com/DavidSouther/shgit for this?

@DavidSouther DavidSouther marked this pull request as draft October 2, 2024 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants