Last active
May 19, 2022 09:02
-
-
Save elonmir/6feef651bf8b0863c576864f818e7777 to your computer and use it in GitHub Desktop.
Just write "YOLO" in your commit message to have some fun.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| RANDOM_MESSAGE_ORIGIN="http://whatthecommit.com/index.txt" | |
| COMMIT_MSG=$(cat "${1:?Missing commit message file}") | |
| if [[ $COMMIT_MSG = "YOLO" ]] | |
| then | |
| echo "$(curl -s $RANDOM_MESSAGE_ORIGIN) [randomly generated]" > .git/COMMIT_EDITMSG | |
| fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment