mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-11 18:11:21 +08:00
feat: add git author for build info
This commit is contained in:
@@ -1 +1 @@
|
||||
v5.0.0-beta-2503311054
|
||||
v5.0.0-beta-2503311103
|
||||
|
||||
@@ -19,6 +19,7 @@ var (
|
||||
GitCommit = "unknown"
|
||||
GitBranch = "unknown"
|
||||
BuildTime = "unknown"
|
||||
GitAuthor = "unknown"
|
||||
)
|
||||
|
||||
func GetVersionInfo() string {
|
||||
@@ -26,6 +27,6 @@ func GetVersionInfo() string {
|
||||
if len(commitID) > 8 {
|
||||
commitID = commitID[:8]
|
||||
}
|
||||
return fmt.Sprintf("%s (branch=%s, commit=%s, build=%s)",
|
||||
VERSION, GitBranch, commitID, BuildTime)
|
||||
return fmt.Sprintf("%s (branch=%s, commit=%s, author=%s, build=%s)",
|
||||
VERSION, GitBranch, commitID, GitAuthor, BuildTime)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user