Skip to content

Instantly share code, notes, and snippets.

@Mrngilles
Created January 30, 2019 19:34
Show Gist options
  • Save Mrngilles/07af8c605ae96d1b78674504b6e90fbf to your computer and use it in GitHub Desktop.
Save Mrngilles/07af8c605ae96d1b78674504b6e90fbf to your computer and use it in GitHub Desktop.
@commit
def creating_commit(commit_message):
if action is "Creating post":
tag = "Post"
elif action is "Updating post":
tag = "Update"
elif action is "Changing configuration":
tag = "Config"
elif action is "Updating theme":
tag = "Theme"
stage(files)
commit(msg=" ".join(tag, commit_message))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment