Selaa lähdekoodia

Don't process commits made by the puller

Brendan Abolivier 7 vuotta sitten
vanhempi
commit
a3309dfee3
Signed by: Brendan Abolivier <contact@brendanabolivier.com> GPG key ID: 8EF1500759F70623
1 muutettua tiedostoa jossa 5 lisäystä ja 0 poistoa
  1. 5
    0
      src/pusher/webhook.go

+ 5
- 0
src/pusher/webhook.go Näytä tiedosto

29
 
29
 
30
 	var err error
30
 	var err error
31
 	for _, commit := range pl.Commits {
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
 		for _, addedFile := range commit.Added {
37
 		for _, addedFile := range commit.Added {
33
 			if err = pushFile(addedFile); err != nil {
38
 			if err = pushFile(addedFile); err != nil {
34
 				panic(err)
39
 				panic(err)