Compare commits

...

2 Commits

Author SHA1 Message Date
cdab5ab4c8
chore: add date & time to version
All checks were successful
build / build (push) Successful in 1m2s
build / trigger-build-image (push) Successful in 6s
2024-10-12 17:44:16 -04:00
f4662eb123
fix(parser/resultdetail): file format 2024-10-12 17:41:08 -04:00
2 changed files with 4 additions and 2 deletions

View File

@ -3,7 +3,9 @@
BUILD_DIR = ./build
TMP_DIR = ./tmp
APPS := $(notdir $(wildcard ./cmd/*))
VERSION := $(shell git rev-parse --short HEAD)
COMMIT_HASH := $(shell git rev-parse --short HEAD)
DATE := $(shell date +"%Y%m%d-%H%M%S")
VERSION := $(COMMIT_HASH)-$(DATE)
FLAGS := "-s -w -X main.Version=$(VERSION)"
all: build

View File

@ -47,7 +47,7 @@ func (*ResultDetail) Run(results []stage.ExecutorResult, confAny any) (
}
for _, file := range conf.ShowFiles {
content, ok := result.Files[file]
comment += fmt.Sprintf("File: `%s`:\n", file)
comment += fmt.Sprintf("File `%s`:\n", file)
if ok {
comment += fmt.Sprintf("```\n%s\n```\n", content)
} else {