瀏覽代碼

Fix github channel override

tags/v0.4.0
Russ Garrett 5 年之前
父節點
當前提交
251f662f11
沒有連結到貢獻者的電子郵件帳戶。
共有 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("http.listeners.github.default_channel")
89
+		channel = viper.GetString(fmt.Sprintf("http.listeners.github.repositories.%s", repo))
90 90
 		if channel == "" {
91
-			channel = viper.GetString(fmt.Sprintf("http.listeners.github.repositories.%s", repo))
91
+			channel := viper.GetString("http.listeners.github.default_channel")
92 92
 		}
93 93
 
94 94
 		if channel == "" {

Loading…
取消
儲存