@@ -29,23 +29,23 @@ func sendTestSlackWebhook(webhookURL string) error {
29
29
{
30
30
"type" : "section" ,
31
31
"fields" : []map [string ]string {
32
- {"type" : "mrkdwn" , "text" : "<https://driftapp.digger.dev |Dev environment>" },
32
+ {"type" : "mrkdwn" , "text" : fmt . Sprintf ( "<%v |Dev environment>", os . Getenv ( "DIGGER_APP_URL" )) },
33
33
{"type" : "mrkdwn" , "text" : ":large_yellow_circle: Drift detected" },
34
34
},
35
35
},
36
36
{"type" : "divider" },
37
37
{
38
38
"type" : "section" ,
39
39
"fields" : []map [string ]string {
40
- {"type" : "mrkdwn" , "text" : "<https://driftapp.digger.dev |Staging environment>" },
40
+ {"type" : "mrkdwn" , "text" : fmt . Sprintf ( "<%v |Staging environment>", os . Getenv ( "DIGGER_APP_URL" )) },
41
41
{"type" : "mrkdwn" , "text" : ":white_circle: Acknowledged drift" },
42
42
},
43
43
},
44
44
{"type" : "divider" },
45
45
{
46
46
"type" : "section" ,
47
47
"fields" : []map [string ]string {
48
- {"type" : "mrkdwn" , "text" : "<https://driftapp.digger.dev |Prod environment>" },
48
+ {"type" : "mrkdwn" , "text" : fmt . Sprintf ( "<%v |Prod environment>", os . Getenv ( "DIGGER_APP_URL" )) },
49
49
{"type" : "mrkdwn" , "text" : ":large_green_circle: No drift" },
50
50
},
51
51
},
@@ -108,7 +108,7 @@ func sectionBlockForProject(project models.Project) (*slack.SectionBlock, error)
108
108
sectionBlock := slack .NewSectionBlock (
109
109
nil ,
110
110
[]* slack.TextBlockObject {
111
- slack .NewTextBlockObject ("mrkdwn" , fmt .Sprintf ("<%v/project /%v|%v>" , os .Getenv ("DIGGER_APP_URL" ), project .ID , project .Name ), false , false ),
111
+ slack .NewTextBlockObject ("mrkdwn" , fmt .Sprintf ("<%v/dashboard/projects /%v|%v>" , os .Getenv ("DIGGER_APP_URL" ), project .ID , project .Name ), false , false ),
112
112
slack .NewTextBlockObject ("mrkdwn" , ":large_green_circle: No Drift" , false , false ),
113
113
},
114
114
nil ,
0 commit comments