main
pengjunwu 2024-01-24 14:55:29 +08:00
parent d1fb7cccf0
commit b94bf4db3f
1 changed files with 2 additions and 0 deletions

View File

@ -1,4 +1,5 @@
#!/bin/bash
script_path=$(dirname "$0")
if [ "$#" -eq 0 ]; then
echo "Usage: $0 <text>"
@ -18,5 +19,6 @@ if [[ $text =~ (ProjectNLD\/[^:]+)\/([^:]+\.cs):([0-9]+) ]]; then
last_commit_author=$(git blame -L "$line_number" "$fileName" | awk '{print $2; exit}')
message="author:${last_commit_author:1}"
echo "message:$message"
cd "$script_path" || exit
sh to_inner_wechat_robot.sh "$message"
fi