Skip to content

Commit de5b6ed

Browse files
committed
chore: updated repo from template
1 parent 9c532e1 commit de5b6ed

3 files changed

Lines changed: 23 additions & 14 deletions

File tree

.copier-answers.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This file is generated by copier and contains
22
# the answers
3-
_commit: v0.1.1-3-gde60da6
3+
_commit: v0.1.0-4-g9c532e1
44
_src_path: .
55
copyright_owner: combostrap
66
copyright_year: 2025

.envrc

Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ export PROJECT_ROOT="$PWD"
3131

3232
# Feedback
3333
echo "Project: "
34-
echo " PROJECT_ROOT : $PROJECT_ROOT"
35-
echo " ORGANISATION_NAME : ${ORGANISATION_NAME}"
34+
echo " Project Root : $PROJECT_ROOT"
35+
echo " Organisation Name : ${ORGANISATION_NAME}"
3636

3737

3838
# Install pre-commit hooks
@@ -60,16 +60,26 @@ fi
6060

6161

6262
#################
63+
# REPM
6364
# Bin script installation
6465
# The installation is done by cloning the repo to a well-known location.
6566
#################
67+
echo ""
68+
echo "Repo manager: "
6669
export REPM_PREFIX="REPM"
67-
REPM_DIR_VAR_NAME="${REPM_PREFIX}${ORGANISATION_ENV_NAME}_DIR"
70+
REPM_DIR_VAR_NAME="${REPM_PREFIX}_${ORGANISATION_ENV_NAME}_DIR"
6871
export REPM_DIR
69-
REPM_DIR=$(realpath "${!REPM_DIR_VAR_NAME:-$PWD/../repo-manager}")
72+
REPM_DIR="${!REPM_DIR_VAR_NAME:-}"
73+
if [ "$REPM_DIR" != "" ]; then
74+
echo " Repo Directory : $REPM_DIR (from var $REPM_DIR_VAR_NAME)"
75+
else
76+
REPM_DIR=$(realpath "$PWD/../repo-manager")
77+
echo " Repo Directory : $REPM_DIR (default)"
78+
fi
7079
if [ ! -d "$REPM_DIR" ]; then
7180

72-
REPM_REPO_URI_VAR_NAME="${REPM_PREFIX}${ORGANISATION_ENV_NAME}_URI"
81+
repm_echo_yellow "REPM_DIR ($REPM_DIR) does not exist."
82+
REPM_REPO_URI_VAR_NAME="${REPM_PREFIX}_${ORGANISATION_ENV_NAME}_URI"
7383
REPM_REPO_URI="${!REPM_REPO_URI_VAR_NAME:-https://github.com/combostrap/repo-manager}"
7484
repm_echo_yellow "Clone $REPM_REPO_URI to $REPM_DIR? Y(Yes-Default)/N(No)"
7585
read -r CLONE
@@ -83,13 +93,6 @@ fi
8393
# Exit if the repo was not installed
8494
if [ -d "$REPM_DIR" ]; then
8595

86-
#################
87-
# REPM
88-
#################
89-
echo ""
90-
echo "Repo manager: "
91-
echo " Repo Directory : $REPM_DIR"
92-
9396
#################
9497
# Bin
9598
#################
@@ -128,5 +131,11 @@ else
128131
echo " Not found"
129132
fi
130133

134+
echo ""
135+
echo "Env: "
136+
echo " PROJECT_ROOT : $PROJECT_ROOT"
137+
echo " ORGANISATION_NAME : $ORGANISATION_NAME"
138+
echo " REPM_DIR : $REPM_DIR"
139+
131140
# Last EOL before direnv output
132141
echo ""

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ repos:
3636
additional_dependencies: [ '@commitlint/config-conventional' ]
3737
args: [ "--verbose" , "--config", ".config/commitlint.config.js" ]
3838
- repo: https://github.com/combostrap/repo-manager
39-
rev: cfac6aeb6d9e0386ac77b90327122b249f1f5f9c
39+
rev: v0.1.0
4040
hooks:
4141
- id: prevent-out-of-sync-commit
4242
name: prevent out-of-sync branch commit

0 commit comments

Comments
 (0)