Skip to content

Commit

Permalink
Merge pull request #1755 from diggerhq/fix/driftapp-build
Browse files Browse the repository at this point in the history
fix test notification and next build
  • Loading branch information
ZIJ authored Oct 8, 2024
2 parents 66478de + ca824f5 commit bbc1931
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions ee/drift/controllers/notifications.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,13 @@ func sendTestSlackWebhook(webhookURL string) error {
},
},
{"type": "divider"},
{
"type": "section",
"fields": []map[string]string{
{"type": "mrkdwn", "text": ":arrow_right: *Note: This is a test notification*pwd"},
},
},
{"type": "divider"},
},
}

Expand Down
2 changes: 1 addition & 1 deletion next/controllers/drift.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ func (d DiggerController) TriggerCronForMatchingProjects(c *gin.Context) {

// TODO: think about pubsub pattern or parallelised calls
for _, proj := range driftEnabledProjects {
matches, err := utils.MatchesCrontab(proj.DriftCrontab, time.Now(), time.Minute)
matches, err := utils.MatchesCrontab(proj.DriftCrontab, time.Now())
if err != nil {
log.Printf("could not check for matching crontab for project %v, %v", proj.ID, err)
// TODO: send metrics here
Expand Down

0 comments on commit bbc1931

Please sign in to comment.