Переглянути джерело

Allow repositories to be disabled

tags/v0.3.3
Russ Garrett 5 роки тому
джерело
коміт
fc75b59ba8
Аккаунт користувача з таким Email не знайдено
1 змінених файлів з 2 додано та 2 видалено
  1. 2
    2
      httplistener/github.go

+ 2
- 2
httplistener/github.go Переглянути файл

@@ -86,9 +86,9 @@ func (hl *HTTPListener) githubHandler(w http.ResponseWriter, request *http.Reque
86 86
 
87 87
 	if send {
88 88
 		repo = strings.ToLower(repo)
89
-		channel := viper.GetString(fmt.Sprintf("http.listeners.github.repositories.%s", repo))
89
+		channel := viper.GetString("http.listeners.github.default_channel")
90 90
 		if channel == "" {
91
-			channel = viper.GetString("http.listeners.github.default_channel")
91
+			channel = viper.GetString(fmt.Sprintf("http.listeners.github.repositories.%s", repo))
92 92
 		}
93 93
 
94 94
 		if channel == "" {

Завантаження…
Відмінити
Зберегти