feat: repo health check (#16) #17

Merged
张泊明518370910136 merged 37 commits from file_check into master 2024-09-11 20:09:27 +08:00
3 changed files with 4 additions and 3 deletions
Showing only changes of commit 9e4a2c4e29 - Show all commits

@ -1 +1 @@
Subproject commit 54fe3e3a386a656664372fd95b527fe1f957dcc8 Subproject commit a236c7ea934de5e59525fa27e4211f4a48dbbf93

@ -1 +1 @@
Subproject commit 2073d687142470aed2dcabb5bb0e016301a4140d Subproject commit a49a6aa29d3dcb0509e8de540db0781aca596f26

View File

@ -2,6 +2,7 @@ package healthcheck
import ( import (
"fmt" "fmt"
"strings"
"github.com/go-git/go-git/v5" "github.com/go-git/go-git/v5"
"github.com/go-git/go-git/v5/plumbing" "github.com/go-git/go-git/v5/plumbing"
@ -55,7 +56,7 @@ func CheckTags(repoPath string, category string, n int) error {
} }
} }
if !found { if !found {
return fmt.Errorf("Expected tag '%s' not found.", target) return fmt.Errorf("Wrong release tag '%s' or missing release tags. Please use one of '%s'.", target, strings.Join(tags, "', '"))
} }
return nil return nil
} }