Compare commits

..

No commits in common. "2c045b8494ba493bda606b70783d1fec5b120dc1" and "7608bd8456a8fe6214b96fa79f3a3d77becc1065" have entirely different histories.

3 changed files with 9 additions and 12 deletions

View File

@ -12,6 +12,7 @@ all: build
build:
$(foreach APP,$(APPS), go build -ldflags=$(FLAGS) -o $(BUILD_DIR)/$(APP) ./cmd/$(APP);)
cp ./build/repo-health-checker ./build/healthcheck
clean:
rm -rf $(BUILD_DIR)/*

View File

@ -8,7 +8,6 @@ import (
type Conf struct {
Score int
ShowExecutorStatus bool `default:"true"`
ShowExitStatus bool `default:"false"`
ShowError bool `default:"false"`
ShowTime bool `default:"true"`
@ -30,9 +29,6 @@ func (*ResultDetail) Run(results []stage.ExecutorResult, confAny any) (
var res []stage.ParserResult
for _, result := range results {
comment := ""
if conf.ShowExecutorStatus {
comment += fmt.Sprintf("Executor Status: `%s`\n", result.Status.String())
}
if conf.ShowExitStatus {
comment += fmt.Sprintf("Exit Status: `%d`\n", result.ExitStatus)
}

View File

@ -56,7 +56,7 @@ func getNonAscii(root string) ([]string, error) {
return err
}
ret, matched := matcher.Match(strings.Split(relPath, "/"), nil)
if matched && ret["text"].IsUnset() && !ret["text"].IsSet() {
if matched && ret["text"].IsUnset() {
return nil
}
}