Why not ask? Attempt to commit without ui.username results in info that it must be configured. The same could make sense in case editor is needed but isn't configured in any reasonable way (ui.editor, $EDITOR, whatever-is-windows-convention).