From a4bc2ceb60d38ad6219bf827663dbdf5ba9355a8 Mon Sep 17 00:00:00 2001 From: Tiffany Chiang Date: Wed, 30 Oct 2024 12:29:48 -0400 Subject: [PATCH] add commit links --- .../neptune/workflows/internal/deploy/revision/queue/queue.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/neptune/workflows/internal/deploy/revision/queue/queue.go b/server/neptune/workflows/internal/deploy/revision/queue/queue.go index bbd9d2ec8..ef5e02bea 100644 --- a/server/neptune/workflows/internal/deploy/revision/queue/queue.go +++ b/server/neptune/workflows/internal/deploy/revision/queue/queue.go @@ -5,6 +5,7 @@ import ( "fmt" "strings" + "github.com/runatlantis/atlantis/server/neptune/workflows/activities/github" activity "github.com/runatlantis/atlantis/server/neptune/workflows/activities/terraform" "github.com/runatlantis/atlantis/server/neptune/workflows/internal/deploy/terraform" "github.com/runatlantis/atlantis/server/neptune/workflows/internal/metrics" @@ -92,7 +93,8 @@ func (q *Deploy) GetQueuedRevisionsSummary() string { return "No other revisions ahead In queue." } for _, deploy := range q.Scan() { - revisions = append(revisions, deploy.Commit.Revision) + revisionLink := github.BuildRevisionURLMarkdown(deploy.Repo.GetFullName(), deploy.Commit.Revision) + revisions = append(revisions, revisionLink) } return fmt.Sprintf("Revisions in queue: %s", strings.Join(revisions, ", ")) }