build-configs(update)
This commit is contained in:
parent
62469837f2
commit
43449e59ee
2 changed files with 21 additions and 2 deletions
|
|
@ -2,8 +2,6 @@
|
|||
|
||||
# Do not edit this file. It is automatically generated by https://www.oliverdavies.uk/build-configs.
|
||||
|
||||
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"
|
||||
|
||||
|
|
|
|||
19
justfile
19
justfile
|
|
@ -33,6 +33,25 @@ install *args:
|
|||
|
||||
|
||||
|
||||
# Enable or disable Git hooks
|
||||
git-hooks command:
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
case "{{ command }}" in
|
||||
"on")
|
||||
echo "Enabling Git hooks..."
|
||||
git config core.hooksPath .githooks
|
||||
;;
|
||||
"off")
|
||||
echo "Disabling Git hooks..."
|
||||
git config --unset core.hooksPath
|
||||
;;
|
||||
*)
|
||||
echo "Error: Invalid argument. Must be either 'on' or 'off'"
|
||||
;;
|
||||
esac
|
||||
|
||||
|
||||
_exec +args:
|
||||
docker compose exec -T {{ args }}
|
||||
|
|
|
|||
Reference in a new issue