Browse Source

Ignore versions.json

Brendan Abolivier 7 years ago
parent
commit
9186ca4d09
Signed by: Brendan Abolivier <contact@brendanabolivier.com> GPG key ID: 8EF1500759F70623
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      src/pusher/webhook.go

+ 5
- 0
src/pusher/webhook.go View File

167
 // TODO: Optimise this part of the workflow, as all files get open twice (here
167
 // TODO: Optimise this part of the workflow, as all files get open twice (here
168
 // and in pushFile)
168
 // and in pushFile)
169
 func isIgnored(filename string) (bool, error) {
169
 func isIgnored(filename string) (bool, error) {
170
+	// Always ignore versions.json
171
+	if strings.HasSuffix(filename, "versions.json") {
172
+		return true, nil
173
+	}
174
+
170
 	// If there's no prefix set, no file is ignored
175
 	// If there's no prefix set, no file is ignored
171
 	if len(cfg.Grafana.IgnorePrefix) == 0 {
176
 	if len(cfg.Grafana.IgnorePrefix) == 0 {
172
 		return false, nil
177
 		return false, nil