-
Notifications
You must be signed in to change notification settings - Fork 24
feat: add optional commit message #859
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
Conversation
renku/core/management/git.py
Outdated
|
|
||
| argv = [os.path.basename(sys.argv[0]) | ||
| ] + [remove_credentials(arg) for arg in sys.argv[1:]] | ||
| if commit_message is None or not isinstance(commit_message, str): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's good to check for the empty message as well. Also, for the case of non-string message, I'd rather raise an exception or just use str(commit_message) to make it visible instead of silently ignoring it. Since we are the user of this API, str(commit_message) would be enough.
rokroskar
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is going to be a nice improvement, but why limit it to the dataset commands?
I've added now explicit params to all other commands. |
…nku-python into 768_commit_msg
mohammad-alisafaee
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
closes: #768