Browse Source

Fix github channel override

tags/v0.4.0
Russ Garrett 5 years ago
parent
commit
251f662f11
No account linked to committer's email address
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      httplistener/github.go

+ 2
- 2
httplistener/github.go View File

86
 
86
 
87
 	if send {
87
 	if send {
88
 		repo = strings.ToLower(repo)
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
 		if channel == "" {
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
 		if channel == "" {
94
 		if channel == "" {

Loading…
Cancel
Save