From f0b5a3b5d7648d1c4ef41394c4398503742722a6 Mon Sep 17 00:00:00 2001 From: Yannick Rave Date: Thu, 12 Mar 2020 19:53:34 +0100 Subject: [PATCH 1/9] Updated new commit message --- scripts/install.sh | 15 +++++++++------ scripts/prepare-commit-msg | 3 +-- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/scripts/install.sh b/scripts/install.sh index bdd373b..809244c 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -1,12 +1,11 @@ #!/bin/sh # defaults -PLACEHOLDER_REGEX_COMMIT_ISSUE_NUMBER="^\s*\[[\-\w]*\d\]" +PLACEHOLDER_REGEX_COMMIT_ISSUE_NUMBER="^\s*[\-\w]*\d:" PLACEHOLDER_REGEX_BRANCH_ISSUE_NUMBER="[.]*\/([\-\w]*?\-\d+)" PLACEHOLDER_REGEX_GIT_COMMIT_MESSAGES="(Merge\sbranch\s\'|\#\sRebase\s|This\sreverts\scommit\s)" PLACEHOLDER_LOGGING_VERBOSE="true" - -GITHUB_SCRIPT_URL="https://raw.githubusercontent.com/janniks/prepare-commit-msg/master/scripts/prepare-commit-msg" +PLACEHOLDER_NEW_COMMIT_MESSAGE="#{issue_number.upcase}: #{original_commit_message.gsub(/(\s[[:punct:]])+$/, '')}" PATH_GIT_GLOBAL="${HOME}/.git-template/" PATH_GIT_LOCAL="./.git/" @@ -125,7 +124,7 @@ if [ "$OPTION_GLOBAL_TEMPLATE" = true ]; then printf -- " - A global \'${BLUE}${HOOK_NAME}${RESET}\' git hook already exists. ${RED}Aborting...${RESET}\n\n" exit fi - + HOOK_FILE="${PATH_GIT_GLOBAL}${HOOK_DIR}${HOOK_NAME}" printf -- " - Setting global git-template...\n" @@ -140,8 +139,10 @@ else HOOK_FILE="${PATH_GIT_LOCAL}${HOOK_DIR}${HOOK_NAME}" fi -printf -- " - Downloading git hook...\n" -curl -s "$GITHUB_SCRIPT_URL" > "$HOOK_FILE" +printf -- " - Creating git hook file\n" + +BASEDIR=$(dirname $0) +cat "${BASEDIR}/prepare-commit-msg" > "$HOOK_FILE" printf -- " - Replacing placeholders...\n" PLACEHOLDER_REGEX_COMMIT_ISSUE_NUMBER=$(printf -- "$PLACEHOLDER_REGEX_COMMIT_ISSUE_NUMBER" | sed 's/\\/\\\\/g') @@ -153,11 +154,13 @@ PLACEHOLDER_REGEX_BRANCH_ISSUE_NUMBER=$(printf -- "$PLACEHOLDER_REGEX_BRANCH_ISS PLACEHOLDER_REGEX_GIT_COMMIT_MESSAGES=$(printf -- "$PLACEHOLDER_REGEX_GIT_COMMIT_MESSAGES" | sed 's/\\/\\\\/g') printf -v PLACEHOLDER_REGEX_GIT_COMMIT_MESSAGES "%q" "$PLACEHOLDER_REGEX_GIT_COMMIT_MESSAGES" PLACEHOLDER_REGEX_GIT_COMMIT_MESSAGES=$(printf -- "$PLACEHOLDER_REGEX_GIT_COMMIT_MESSAGES" | sed 's/\//\\\//g') +PLACEHOLDER_NEW_COMMIT_MESSAGE=$(printf -- "$PLACEHOLDER_NEW_COMMIT_MESSAGE" | sed 's/\//\\\//g') sed -i '' "s/PLACEHOLDER_REGEX_COMMIT_ISSUE_NUMBER/\/${PLACEHOLDER_REGEX_COMMIT_ISSUE_NUMBER}\//g" "$HOOK_FILE" sed -i '' "s/PLACEHOLDER_REGEX_BRANCH_ISSUE_NUMBER/\/${PLACEHOLDER_REGEX_BRANCH_ISSUE_NUMBER}\//g" "$HOOK_FILE" sed -i '' "s/PLACEHOLDER_REGEX_GIT_COMMIT_MESSAGES/\/${PLACEHOLDER_REGEX_GIT_COMMIT_MESSAGES}\//g" "$HOOK_FILE" sed -i '' "s/PLACEHOLDER_LOGGING_VERBOSE/${PLACEHOLDER_LOGGING_VERBOSE}/g" "$HOOK_FILE" +sed -i '' "s/PLACEHOLDER_NEW_COMMIT_MESSAGE/${PLACEHOLDER_NEW_COMMIT_MESSAGE}/g" "$HOOK_FILE" printf -- " - Requesting permission to execute git hook...\n" chmod a+x "$HOOK_FILE" diff --git a/scripts/prepare-commit-msg b/scripts/prepare-commit-msg index eda4470..a092413 100644 --- a/scripts/prepare-commit-msg +++ b/scripts/prepare-commit-msg @@ -11,7 +11,6 @@ $verbose_prefix = "git hook: " regex_commit_issue_number = PLACEHOLDER_REGEX_COMMIT_ISSUE_NUMBER regex_branch_issue_number = PLACEHOLDER_REGEX_BRANCH_ISSUE_NUMBER regex_git_commit_messages = PLACEHOLDER_REGEX_GIT_COMMIT_MESSAGES - # colorize strings in console output class String def error; "\e[31m#{self}\e[0m" end @@ -62,7 +61,7 @@ if !issue_number end # combine to new message -new_commit_message = "[#{issue_number.upcase}] #{original_commit_message.gsub(/(\s[[:punct:]])+$/, '')}" +new_commit_message = "PLACEHOLDER_NEW_COMMIT_MESSAGE" # write new commit message to file File.open(commit_file, 'w') do |f| From e297085b25868e47278ae809496d45879ea3823a Mon Sep 17 00:00:00 2001 From: Yannick Rave Date: Thu, 12 Mar 2020 19:54:55 +0100 Subject: [PATCH 2/9] Updated README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ff86127..ef3cfdf 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ This git hook requires `ruby` to be installed _(already pre-installed by defaul To install simply run the following command. This requires `curl` to be installed. ```bash -sh <(curl -s https://raw.githubusercontent.com/janniks/prepare-commit-msg/master/scripts/install.sh) +sh <(curl -s https://raw.githubusercontent.com/yrave/prepare-commit-msg/master/scripts/install.sh) ``` > If you choose the option to install globally, you will have to reinitialize all your git repositories. The following helpful command reinitializes all repositories found in sub-directories of the current directory. From a99d73de0f2b65a204981383b338e1d7b4e44e25 Mon Sep 17 00:00:00 2001 From: Yannick Rave Date: Fri, 13 Mar 2020 10:58:59 +0100 Subject: [PATCH 3/9] Added Github URL --- scripts/install.sh | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/scripts/install.sh b/scripts/install.sh index 809244c..a1aede5 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -1,11 +1,13 @@ #!/bin/sh +should_use_file_from_github_url=true # defaults PLACEHOLDER_REGEX_COMMIT_ISSUE_NUMBER="^\s*[\-\w]*\d:" PLACEHOLDER_REGEX_BRANCH_ISSUE_NUMBER="[.]*\/([\-\w]*?\-\d+)" PLACEHOLDER_REGEX_GIT_COMMIT_MESSAGES="(Merge\sbranch\s\'|\#\sRebase\s|This\sreverts\scommit\s)" PLACEHOLDER_LOGGING_VERBOSE="true" PLACEHOLDER_NEW_COMMIT_MESSAGE="#{issue_number.upcase}: #{original_commit_message.gsub(/(\s[[:punct:]])+$/, '')}" +GITHUB_SCRIPT_URL="https://raw.githubusercontent.com/yrave/prepare-commit-msg/master/scripts/prepare-commit-msg" PATH_GIT_GLOBAL="${HOME}/.git-template/" PATH_GIT_LOCAL="./.git/" @@ -139,10 +141,14 @@ else HOOK_FILE="${PATH_GIT_LOCAL}${HOOK_DIR}${HOOK_NAME}" fi -printf -- " - Creating git hook file\n" - -BASEDIR=$(dirname $0) -cat "${BASEDIR}/prepare-commit-msg" > "$HOOK_FILE" +if [ "$should_use_file_from_github_url" = true ] ; then + printf -- " - Downloading git hook...\n" + curl -s "$GITHUB_SCRIPT_URL" > "$HOOK_FILE" +else + printf -- " - Creating git hook file from local file\n" + BASEDIR=$(dirname $0) + cat "${BASEDIR}/prepare-commit-msg" > "$HOOK_FILE" +fi printf -- " - Replacing placeholders...\n" PLACEHOLDER_REGEX_COMMIT_ISSUE_NUMBER=$(printf -- "$PLACEHOLDER_REGEX_COMMIT_ISSUE_NUMBER" | sed 's/\\/\\\\/g') From b78bd34a1cfa0f00471fc1d0d5adab6ee2a312da Mon Sep 17 00:00:00 2001 From: schnappfuesch Date: Wed, 18 Mar 2020 17:39:18 +0100 Subject: [PATCH 4/9] changed shebang from sh to bash --- scripts/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install.sh b/scripts/install.sh index a1aede5..0dc78b8 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash should_use_file_from_github_url=true # defaults From e72ebc7640b136b2a21863cf5a968017f7fe3c9c Mon Sep 17 00:00:00 2001 From: Yannick Rave Date: Thu, 19 Mar 2020 13:03:02 +0100 Subject: [PATCH 5/9] Added different sed command for Linux --- scripts/install.sh | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/scripts/install.sh b/scripts/install.sh index a1aede5..f44d185 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -162,11 +162,20 @@ printf -v PLACEHOLDER_REGEX_GIT_COMMIT_MESSAGES "%q" "$PLACEHOLDER_REGEX_GIT_COM PLACEHOLDER_REGEX_GIT_COMMIT_MESSAGES=$(printf -- "$PLACEHOLDER_REGEX_GIT_COMMIT_MESSAGES" | sed 's/\//\\\//g') PLACEHOLDER_NEW_COMMIT_MESSAGE=$(printf -- "$PLACEHOLDER_NEW_COMMIT_MESSAGE" | sed 's/\//\\\//g') -sed -i '' "s/PLACEHOLDER_REGEX_COMMIT_ISSUE_NUMBER/\/${PLACEHOLDER_REGEX_COMMIT_ISSUE_NUMBER}\//g" "$HOOK_FILE" -sed -i '' "s/PLACEHOLDER_REGEX_BRANCH_ISSUE_NUMBER/\/${PLACEHOLDER_REGEX_BRANCH_ISSUE_NUMBER}\//g" "$HOOK_FILE" -sed -i '' "s/PLACEHOLDER_REGEX_GIT_COMMIT_MESSAGES/\/${PLACEHOLDER_REGEX_GIT_COMMIT_MESSAGES}\//g" "$HOOK_FILE" -sed -i '' "s/PLACEHOLDER_LOGGING_VERBOSE/${PLACEHOLDER_LOGGING_VERBOSE}/g" "$HOOK_FILE" -sed -i '' "s/PLACEHOLDER_NEW_COMMIT_MESSAGE/${PLACEHOLDER_NEW_COMMIT_MESSAGE}/g" "$HOOK_FILE" +replace_placeholder_with_value () { + if [ $(uname -s) == "Linux" ]; then + sed -i "s/${1}/${2}/g" "$HOOK_FILE" + return + fi + + sed -i '' "s/${1}/${2}/g" "$HOOK_FILE" +} + +replace_placeholder_with_value PLACEHOLDER_REGEX_COMMIT_ISSUE_NUMBER "\/${PLACEHOLDER_REGEX_COMMIT_ISSUE_NUMBER}\/" +replace_placeholder_with_value PLACEHOLDER_REGEX_BRANCH_ISSUE_NUMBER "\/${PLACEHOLDER_REGEX_BRANCH_ISSUE_NUMBER}\/" +replace_placeholder_with_value PLACEHOLDER_REGEX_GIT_COMMIT_MESSAGES "\/${PLACEHOLDER_REGEX_GIT_COMMIT_MESSAGES}\/" +replace_placeholder_with_value PLACEHOLDER_LOGGING_VERBOSE "${PLACEHOLDER_LOGGING_VERBOSE}" +replace_placeholder_with_value PLACEHOLDER_NEW_COMMIT_MESSAGE "${PLACEHOLDER_NEW_COMMIT_MESSAGE}" printf -- " - Requesting permission to execute git hook...\n" chmod a+x "$HOOK_FILE" From 87987c0985bc3ac55b177f83adced40f5c74668a Mon Sep 17 00:00:00 2001 From: Yannick Rave Date: Wed, 6 May 2020 13:07:37 +0200 Subject: [PATCH 6/9] Added choosable option for commit regex --- scripts/install.sh | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/scripts/install.sh b/scripts/install.sh index 229c7e7..55e237b 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -2,7 +2,9 @@ should_use_file_from_github_url=true # defaults -PLACEHOLDER_REGEX_COMMIT_ISSUE_NUMBER="^\s*[\-\w]*\d:" +PLACEHOLDER_REGEX_COMMIT_ISSUE_NUMBER="^\s*\[[\-\w]*\d\]" +PLACEHOLDER_REGEX_COMMIT_ISSUE_NUMBER_ONE="^\s*\[[\-\w]*\d\]" +PLACEHOLDER_REGEX_COMMIT_ISSUE_NUMBER_TWO="^\s*[\-\w]*\d:" PLACEHOLDER_REGEX_BRANCH_ISSUE_NUMBER="[.]*\/([\-\w]*?\-\d+)" PLACEHOLDER_REGEX_GIT_COMMIT_MESSAGES="(Merge\sbranch\s\'|\#\sRebase\s|This\sreverts\scommit\s)" PLACEHOLDER_LOGGING_VERBOSE="true" @@ -76,16 +78,28 @@ if [ "$answer" != "${answer#[Yy]}" ]; then PLACEHOLDER_LOGGING_VERBOSE=false fi - printf -- "Set a custom regex for parsing issue numbers from commit messages:\n" - printf -- " - To use default value, leave empty and press return\n\n" - printf -- "Default: ${BLUE}${PLACEHOLDER_REGEX_COMMIT_ISSUE_NUMBER}${RESET}\n${BLUE}>${RESET} " + printf -- "Set a custom regex for parsing issue numbers from commit messages:\n\n" + printf -- " - To use default value, leave empty and press return\n" + printf -- "Default: ${BLUE}${PLACEHOLDER_REGEX_COMMIT_ISSUE_NUMBER}${RESET}\n\n" + printf -- " - To use ${GREEN}[ISSUE_NUMBER] COMMIT_MESSAGE${RESET}, enter 1\n" + printf -- "1: ${BLUE}${PLACEHOLDER_REGEX_COMMIT_ISSUE_NUMBER_ONE}${RESET}\n\n" + printf -- " - To use ${GREEN}ISSUE_NUMBER: COMMIT_MESSAGE${RESET}, enter 2\n" + printf -- "2: ${BLUE}${PLACEHOLDER_REGEX_COMMIT_ISSUE_NUMBER_TWO}${RESET}\n\n${BLUE}>${RESET} " read answer if [ ! -z "$answer" ]; then - PLACEHOLDER_REGEX_COMMIT_ISSUE_NUMBER=answer + if [ "$answer" == "1" ]; then + PLACEHOLDER_REGEX_COMMIT_ISSUE_NUMBER=$PLACEHOLDER_REGEX_COMMIT_ISSUE_NUMBER_ONE + elif [ "$answer" == "2" ]; then + PLACEHOLDER_REGEX_COMMIT_ISSUE_NUMBER=$PLACEHOLDER_REGEX_COMMIT_ISSUE_NUMBER_TWO + else + PLACEHOLDER_REGEX_COMMIT_ISSUE_NUMBER=answer + fi fi - clear_n_lines 5 + clear_n_lines 13 + printf -- " - ${BLUE}Regex for commit message: ${PLACEHOLDER_REGEX_COMMIT_ISSUE_NUMBER} ${RESET}\n\n" + printf -- "Set a custom regex for parsing issue numbers from branch names:\n" printf -- " - To use default value, leave empty and press return\n\n" printf -- "Default: ${BLUE}${PLACEHOLDER_REGEX_BRANCH_ISSUE_NUMBER}${RESET}\n${BLUE}>${RESET} " From 71f695d55e96792cb0f00c117d89f1a2c5a9db4d Mon Sep 17 00:00:00 2001 From: Yannick Rave Date: Wed, 6 May 2020 13:10:01 +0200 Subject: [PATCH 7/9] Changed URL to correct repo --- README.md | 2 +- scripts/install.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ef3cfdf..ff86127 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ This git hook requires `ruby` to be installed _(already pre-installed by defaul To install simply run the following command. This requires `curl` to be installed. ```bash -sh <(curl -s https://raw.githubusercontent.com/yrave/prepare-commit-msg/master/scripts/install.sh) +sh <(curl -s https://raw.githubusercontent.com/janniks/prepare-commit-msg/master/scripts/install.sh) ``` > If you choose the option to install globally, you will have to reinitialize all your git repositories. The following helpful command reinitializes all repositories found in sub-directories of the current directory. diff --git a/scripts/install.sh b/scripts/install.sh index 55e237b..ee80812 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -9,7 +9,7 @@ PLACEHOLDER_REGEX_BRANCH_ISSUE_NUMBER="[.]*\/([\-\w]*?\-\d+)" PLACEHOLDER_REGEX_GIT_COMMIT_MESSAGES="(Merge\sbranch\s\'|\#\sRebase\s|This\sreverts\scommit\s)" PLACEHOLDER_LOGGING_VERBOSE="true" PLACEHOLDER_NEW_COMMIT_MESSAGE="#{issue_number.upcase}: #{original_commit_message.gsub(/(\s[[:punct:]])+$/, '')}" -GITHUB_SCRIPT_URL="https://raw.githubusercontent.com/yrave/prepare-commit-msg/master/scripts/prepare-commit-msg" +GITHUB_SCRIPT_URL="https://raw.githubusercontent.com/janniks/prepare-commit-msg/master/scripts/prepare-commit-msg" PATH_GIT_GLOBAL="${HOME}/.git-template/" PATH_GIT_LOCAL="./.git/" From 469a85cf72cb56f94c785200309f03e6217257c5 Mon Sep 17 00:00:00 2001 From: Yannick Rave Date: Wed, 6 May 2020 14:26:06 +0200 Subject: [PATCH 8/9] Added choosable option for commit message style --- scripts/install.sh | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/scripts/install.sh b/scripts/install.sh index ee80812..5848d24 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -8,7 +8,9 @@ PLACEHOLDER_REGEX_COMMIT_ISSUE_NUMBER_TWO="^\s*[\-\w]*\d:" PLACEHOLDER_REGEX_BRANCH_ISSUE_NUMBER="[.]*\/([\-\w]*?\-\d+)" PLACEHOLDER_REGEX_GIT_COMMIT_MESSAGES="(Merge\sbranch\s\'|\#\sRebase\s|This\sreverts\scommit\s)" PLACEHOLDER_LOGGING_VERBOSE="true" -PLACEHOLDER_NEW_COMMIT_MESSAGE="#{issue_number.upcase}: #{original_commit_message.gsub(/(\s[[:punct:]])+$/, '')}" +PLACEHOLDER_NEW_COMMIT_MESSAGE="[#{issue_number.upcase}] #{original_commit_message.gsub(/(\s[[:punct:]])+$/, '')}" +PLACEHOLDER_NEW_COMMIT_MESSAGE_ONE="[#{issue_number.upcase}] #{original_commit_message.gsub(/(\s[[:punct:]])+$/, '')}" +PLACEHOLDER_NEW_COMMIT_MESSAGE_TWO="#{issue_number.upcase}: #{original_commit_message.gsub(/(\s[[:punct:]])+$/, '')}" GITHUB_SCRIPT_URL="https://raw.githubusercontent.com/janniks/prepare-commit-msg/master/scripts/prepare-commit-msg" PATH_GIT_GLOBAL="${HOME}/.git-template/" @@ -78,6 +80,28 @@ if [ "$answer" != "${answer#[Yy]}" ]; then PLACEHOLDER_LOGGING_VERBOSE=false fi + printf -- "Set a custom message style where ISSUE_NUMBER is the issue number and COMMIT_MESSAGE is the commit message.\n" + printf -- " - To use default value, leave empty and press return\n" + printf -- "Default: ${BLUE}${PLACEHOLDER_NEW_COMMIT_MESSAGE}${RESET}\n\n" + printf -- " - To use ${GREEN}[ISSUE_NUMBER] COMMIT_MESSAGE${RESET}, enter 1\n" + printf -- "1: ${BLUE}${PLACEHOLDER_NEW_COMMIT_MESSAGE_ONE}${RESET}\n\n" + printf -- " - To use ${GREEN}ISSUE_NUMBER: COMMIT_MESSAGE${RESET}, enter 2\n" + printf -- "2: ${BLUE}${PLACEHOLDER_NEW_COMMIT_MESSAGE_TWO}${RESET}\n\n${BLUE}>${RESET} " + read answer + + if [ ! -z "$answer" ]; then + if [ "$answer" == "1" ]; then + PLACEHOLDER_NEW_COMMIT_MESSAGE=$PLACEHOLDER_NEW_COMMIT_MESSAGE_ONE + elif [ "$answer" == "2" ]; then + PLACEHOLDER_NEW_COMMIT_MESSAGE=$PLACEHOLDER_NEW_COMMIT_MESSAGE_TWO + else + PLACEHOLDER_NEW_COMMIT_MESSAGE=answer + fi + fi + + clear_n_lines 12 + printf -- " - ${BLUE}Commit message style: ${PLACEHOLDER_NEW_COMMIT_MESSAGE} ${RESET}\n\n" + printf -- "Set a custom regex for parsing issue numbers from commit messages:\n\n" printf -- " - To use default value, leave empty and press return\n" printf -- "Default: ${BLUE}${PLACEHOLDER_REGEX_COMMIT_ISSUE_NUMBER}${RESET}\n\n" From 9d9312e2410a1b30b61b8b8c456ae03d21c4a50b Mon Sep 17 00:00:00 2001 From: Yannick Rave Date: Wed, 27 Jan 2021 01:07:00 +0100 Subject: [PATCH 9/9] Update urls --- README.md | 2 +- scripts/install.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ff86127..ef3cfdf 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ This git hook requires `ruby` to be installed _(already pre-installed by defaul To install simply run the following command. This requires `curl` to be installed. ```bash -sh <(curl -s https://raw.githubusercontent.com/janniks/prepare-commit-msg/master/scripts/install.sh) +sh <(curl -s https://raw.githubusercontent.com/yrave/prepare-commit-msg/master/scripts/install.sh) ``` > If you choose the option to install globally, you will have to reinitialize all your git repositories. The following helpful command reinitializes all repositories found in sub-directories of the current directory. diff --git a/scripts/install.sh b/scripts/install.sh index 5848d24..871f8ac 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -11,7 +11,7 @@ PLACEHOLDER_LOGGING_VERBOSE="true" PLACEHOLDER_NEW_COMMIT_MESSAGE="[#{issue_number.upcase}] #{original_commit_message.gsub(/(\s[[:punct:]])+$/, '')}" PLACEHOLDER_NEW_COMMIT_MESSAGE_ONE="[#{issue_number.upcase}] #{original_commit_message.gsub(/(\s[[:punct:]])+$/, '')}" PLACEHOLDER_NEW_COMMIT_MESSAGE_TWO="#{issue_number.upcase}: #{original_commit_message.gsub(/(\s[[:punct:]])+$/, '')}" -GITHUB_SCRIPT_URL="https://raw.githubusercontent.com/janniks/prepare-commit-msg/master/scripts/prepare-commit-msg" +GITHUB_SCRIPT_URL="https://raw.githubusercontent.com/yrave/prepare-commit-msg/master/scripts/prepare-commit-msg" PATH_GIT_GLOBAL="${HOME}/.git-template/" PATH_GIT_LOCAL="./.git/"