ignore処理に対応
This commit is contained in:
@@ -32,6 +32,7 @@ type RepoSetting struct {
|
||||
Addr string `json:"addr"`
|
||||
Dir string `json:"dir"`
|
||||
TagRegex string `json:"tagRegex"`
|
||||
Ignore string `json:"ignore"`
|
||||
}
|
||||
|
||||
// RepoType と ドメインのマッピング
|
||||
@@ -85,6 +86,7 @@ func processRepository(workRoot string, repoSetting RepoSetting, npmToken, npmRe
|
||||
addr := repoSetting.Addr
|
||||
dir := repoSetting.Dir
|
||||
tagRegex := repoSetting.TagRegex
|
||||
ignore := repoSetting.Ignore == "true"
|
||||
|
||||
repositoryName := strings.TrimSuffix(filepath.Base(addr), filepath.Ext(addr))
|
||||
repositoryAuthor := strings.Split(addr, "/")[len(strings.Split(addr, "/"))-2]
|
||||
@@ -108,6 +110,11 @@ func processRepository(workRoot string, repoSetting RepoSetting, npmToken, npmRe
|
||||
dir = "."
|
||||
}
|
||||
|
||||
if ignore {
|
||||
fmt.Printf("[Info] Ignored. %s:%s\n", repositoryName, dir)
|
||||
return
|
||||
}
|
||||
|
||||
// Tagの確認
|
||||
remoteTags, err := getRemoteTags(addr)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user