Skip to main content

Publish output of tracked runs inside of PRs

As an organization migrating from Atlantis, we enabled feature:add_plan_pr_comment across all our stacks: https://docs.spacelift.io/concepts/run/pull-request-comments

The issue we have now is that I want to replicate a similar experience to Atlantis where you see the actual output on the apply/tracked run, rather than clicking into Spacelift every time. Often, I don't need to open Spacelift if a tracked run has already completed—I just want to confirm everything applied cleanly. And when reviewing multiple PRs, opening each one just to check the proposed and tracked runs gets tedious.

Similar to feature:add_plan_pr_comment, I created a policy that other Atlantis users might find useful, called tracked-apply-pr-comment.

image.png


Currently the functionality only runs for successful tracked runs but atlantis apply outputs on every run (failed or success). So I plan on updating this to follow the same logic.

Example of atlantis apply

image.png
Workaround
Problem

Log in to comment and vote

No comments yet

Be the first to share your thoughts.