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