瀏覽代碼

Ignore versions.json

Brendan Abolivier 6 年之前
父節點
當前提交
9186ca4d09
簽署人: Brendan Abolivier <contact@brendanabolivier.com> GPG 金鑰 ID: 8EF1500759F70623
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5
    0
      src/pusher/webhook.go

+ 5
- 0
src/pusher/webhook.go 查看文件

@@ -167,6 +167,11 @@ func pushFile(filename string) error {
167 167
 // TODO: Optimise this part of the workflow, as all files get open twice (here
168 168
 // and in pushFile)
169 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 175
 	// If there's no prefix set, no file is ignored
171 176
 	if len(cfg.Grafana.IgnorePrefix) == 0 {
172 177
 		return false, nil