Browse Source

fixed tf regex for counts

bmallred 10 years ago
parent
commit
9a519cec18
1 changed files with 2 additions and 2 deletions
  1. 2 2
      code-notify.go

+ 2 - 2
code-notify.go

28
	}
28
	}
29
29
30
	// Loop through the repositories on an interval
30
	// Loop through the repositories on an interval
31
	interval := 15 * time.Minute
31
	interval := 1 * time.Minute
32
	doEvery(interval, func() {
32
	doEvery(interval, func() {
33
		c := hunter(root)
33
		c := hunter(root)
34
34
112
			re = regexp.MustCompile("changeset")
112
			re = regexp.MustCompile("changeset")
113
			break
113
			break
114
		case base == ".tf":
114
		case base == ".tf":
115
			re = regexp.MustCompile("revno")
115
			re = regexp.MustCompile("[\r\n]([0-9]+)")
116
			break
116
			break
117
		case base == ".bzr":
117
		case base == ".bzr":
118
			re = regexp.MustCompile("commit")
118
			re = regexp.MustCompile("commit")