feat: repo health check (#16) #17
|  | @ -1 +1 @@ | ||||||
| Subproject commit 54fe3e3a386a656664372fd95b527fe1f957dcc8 | Subproject commit a236c7ea934de5e59525fa27e4211f4a48dbbf93 | ||||||
|  | @ -1 +1 @@ | ||||||
| Subproject commit 2073d687142470aed2dcabb5bb0e016301a4140d | Subproject commit a49a6aa29d3dcb0509e8de540db0781aca596f26 | ||||||
|  | @ -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 | ||||||
| } | } | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user