Pārlūkot izejas kodu

Don't process commits made by the puller

Brendan Abolivier 6 gadus atpakaļ
vecāks
revīzija
a3309dfee3
Parakstījis: Brendan Abolivier <contact@brendanabolivier.com> GPG atslēgas ID: 8EF1500759F70623
1 mainītis faili ar 5 papildinājumiem un 0 dzēšanām
  1. 5
    0
      src/pusher/webhook.go

+ 5
- 0
src/pusher/webhook.go Parādīt failu

@@ -29,6 +29,11 @@ func HandlePush(payload interface{}, header webhooks.Header) {
29 29
 
30 30
 	var err error
31 31
 	for _, commit := range pl.Commits {
32
+		// We don't want to process commits made by the puller
33
+		if commit.Author.Email == "grafana@cozycloud.cc" {
34
+			continue
35
+		}
36
+
32 37
 		for _, addedFile := range commit.Added {
33 38
 			if err = pushFile(addedFile); err != nil {
34 39
 				panic(err)