don't allow using --pr-commit-msg when only adding new files with --new-pr (unless --force is used)#4498
Conversation
|
should we also force re-generating the PR title if easyconfigs are renamed or deleted? because in that case the title is not correct anymore |
|
@smoors We'd have to check that it wasn't modifying any file before doing that. But why not |
|
I'm not sure if this is a good idea... I think it's good to have the option to use Maybe we can require |
61aff50 allows bypassing the error if I explicitly want this to be an error as I want people to see it and act on it. I'm deliberately not saying that you can use |
smoors
left a comment
There was a problem hiding this comment.
works as advertised, lgtm
--pr-commit-msg when only adding new files--pr-commit-msg when only adding new files with --new-pr (unless --force is used)
We should force the generated message in these cases.
An alternative to raising an error (as implemented here) would be to generate the default PR title and replace the
commit_msgin these cases while printing a warning.