refactor(git-hooks): move description text

This commit is contained in:
Oliver Davies 2023-08-26 23:42:17 +01:00
parent 050c28901a
commit b5fd94b369

View file

@ -2,8 +2,6 @@
# {{ managedText }}
set -euo pipefail
# Load the issue ID from an `.issue-id` file within the project and replace the
# `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.
# "OD-123 OD-456".
set -euo pipefail
PROJECT_DIR=$(git rev-parse --show-toplevel) # Get the root directory of the repo
ISSUE_FILE="$PROJECT_DIR/.issue-id"