How to Show Previous Pull Requests in a New Stack's PR Tab
Last updated: June 12, 2025
When creating a new stack after a Pull Request (PR) is already open, you may notice the PR doesn't automatically appear in the stack's PR tab. Here are two methods to make the PR visible:
Method 1: Push an Update to the PR
The simplest solution is to push a minor update to the PR after the stack is created:
Make a trivial change to your code (such as adding a blank space)
Commit and push the change to the PR
The PR will now appear in the stack's PR tab
Method 2: Using a Policy with Comment Trigger
Alternatively, you can set up a policy that responds to specific PR comments:
Add the following policy snippet to your stack:
propose {
input.pull_request.action == "commented"
input.pull_request.comment == concat(" ", ["/spacelift", "plan", input.stack.id])
}Once the policy is in place:
Go to your PR
Add a comment in the format:
/spacelift plan <stack_id>Reminder to replace
<stack_id>with your actual stack ID.
This will trigger Spacelift to evaluate the PR and initiate a propose run for the stack, making the PR visible in the PR tab.
Note: Spacelift does not currently support automatic dynamic refresh of PRs when new stacks are created. The methods above are workarounds for this limitation.