Explorar el Código

fix(lazygit): fix empty scope parens for conventional commits

Joe hace 1 año
padre
commit
498aed5de9
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      .scripts/lazygit_add_conventional_commit.py

+ 1 - 1
.scripts/lazygit_add_conventional_commit.py

@@ -11,7 +11,7 @@ if __name__ == "__main__":
     message = form_type
     message += (
         "(" + form_scope.lower().replace(" ", "-") + ")"
-        if len(form_subject) > 0
+        if len(form_scope) > 0
         else ""
     )
     message += "!" if is_breaking else ""