blame
parent
b94bf4db3f
commit
75f0c5a085
|
|
@ -1,5 +1,5 @@
|
|||
#!/bin/bash
|
||||
script_path=$(dirname "$0")
|
||||
script_directory="$(cd "$(dirname "$0")" && pwd)"
|
||||
|
||||
if [ "$#" -eq 0 ]; then
|
||||
echo "Usage: $0 <text>"
|
||||
|
|
@ -7,6 +7,17 @@ if [ "$#" -eq 0 ]; then
|
|||
fi
|
||||
|
||||
text="$1"
|
||||
#text=" at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.GetBuildPlayerOptions (UnityEditor.BuildPlayerOptions defaultBuildPlayerOptions) [0x00001] in /Volumes/jenkins1/sharedspace/ra_2022.3/Editor/Mono/BuildPlayerWindowBuildMethods.cs:209
|
||||
# at BatchBuild.BuildContentAndPlayer () [0x00000] in /Users/mayuanzheng/.jenkins/workspace/NLD_android_debug/ProjectNLD/Assets/Editor/Common/BuildLauncher.cs:146
|
||||
# UnityEngine.StackTraceUtility:ExtractStackTrace () (at /Volumes/jenkins1/sharedspace/ra_2022.3/Runtime/Export/Scripting/StackTrace.cs:37)
|
||||
# UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])
|
||||
# UnityEngine.Logger:Log (UnityEngine.LogType,object)
|
||||
# UnityEngine.Debug:LogError (object)
|
||||
# BatchBuild:BuildContentAndPlayer () (at Assets/Editor/Common/BuildLauncher.cs:195)
|
||||
#
|
||||
# (Filename: Assets/Editor/Common/BuildLauncher.cs Line: 195)
|
||||
#
|
||||
# BuildMethodException"
|
||||
echo "blame start $text"
|
||||
if [[ $text =~ (ProjectNLD\/[^:]+)\/([^:]+\.cs):([0-9]+) ]]; then
|
||||
path="${BASH_REMATCH[1]}"
|
||||
|
|
@ -19,6 +30,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
|
||||
cd "$script_directory" || exit
|
||||
sh to_inner_wechat_robot.sh "$message"
|
||||
fi
|
||||
Loading…
Reference in New Issue