Skip to content

Instantly share code, notes, and snippets.

@FernandoCelmer
Last active April 16, 2023 04:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FernandoCelmer/871512f8491e9de43e0b0c89e65bffe4 to your computer and use it in GitHub Desktop.
Save FernandoCelmer/871512f8491e9de43e0b0c89e65bffe4 to your computer and use it in GitHub Desktop.
import os
pattern = [
"⚙️ FEATURE",
"📝 PEP8",
"📌 ISSUE",
"🪲 BUG",
"📘 DOCS",
"📦 PyPI",
"❤️️ TEST",
"⬆️ CI/CD",
"⚠️ SECURITY"
]
for index, text_option in enumerate(pattern):
print(str(index) + " - "+ pattern[index])
option = pattern[int(input("\nOption: "))]
description = str(input("Description: "))
reference = str(input("Reference: "))
os.system("git status")
os.system("git pull")
if reference:
os.system(f"git commit -m '{str(option)}-#{reference}: {str(description)}'")
else:
os.system(f"git commit -m '{str(option)}: {str(description)}'")
os.system("git push")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment