From abc538c64fa4d075cbeca48f95fa851e0de1512e Mon Sep 17 00:00:00 2001 From: "Xinwei Xiong(cubxxw-openim)" <3293172751nss@gmail.com> Date: Fri, 7 Jul 2023 22:07:52 +0800 Subject: [PATCH] feat: add cyan Signed-off-by: Xinwei Xiong(cubxxw-openim) <3293172751nss@gmail.com> --- scripts/githooks/pre-push | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/githooks/pre-push b/scripts/githooks/pre-push index 2553367b0..ad17b3c48 100644 --- a/scripts/githooks/pre-push +++ b/scripts/githooks/pre-push @@ -75,9 +75,12 @@ print_separator # Print time of submission print_color "Time of submission: ${time}" "${BOLD_PREFIX}${CYAN_PREFIX}" +author=$(git config user.name) +repository=$(basename -s .git $(git config --get remote.origin.url)) + # Print additional information if needed -print_color "Repository: ${repository}" "${YELLOW_PREFIX}" -print_color "Author: ${author}" "${YELLOW_PREFIX}" +print_color "Repository: ${repository}" "${BLUE_PREFIX}" +print_color "Author: ${author}" "${PURPLE_PREFIX}" # Print section separator print_separator