mirror of
https://github.com/opdavies/build-configs.git
synced 2025-03-13 05:26:56 +00:00
refactor(git-hooks): move description text
This commit is contained in:
parent
050c28901a
commit
b5fd94b369
|
@ -2,8 +2,6 @@
|
||||||
|
|
||||||
# {{ managedText }}
|
# {{ managedText }}
|
||||||
|
|
||||||
set -euo pipefail
|
|
||||||
|
|
||||||
# Load the issue ID from an `.issue-id` file within the project and replace the
|
# Load the issue ID from an `.issue-id` file within the project and replace the
|
||||||
# `ISSUE_ID` placeholder within a Git commit message.
|
# `ISSUE_ID` placeholder within a Git commit message.
|
||||||
#
|
#
|
||||||
|
@ -13,6 +11,8 @@ set -euo pipefail
|
||||||
# This also works with multiple issue IDs in the same string, e.g.
|
# This also works with multiple issue IDs in the same string, e.g.
|
||||||
# "OD-123 OD-456".
|
# "OD-123 OD-456".
|
||||||
|
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
PROJECT_DIR=$(git rev-parse --show-toplevel) # Get the root directory of the repo
|
PROJECT_DIR=$(git rev-parse --show-toplevel) # Get the root directory of the repo
|
||||||
ISSUE_FILE="$PROJECT_DIR/.issue-id"
|
ISSUE_FILE="$PROJECT_DIR/.issue-id"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue