We’re excited to inform you that we have several upcoming enhancements and modifications for how Spacelift handles VCS events.
Our first change focuses on altering the way we handle pull request events. Starting from November 13th, Spacelift will start handling pull request events and creating proposed runs if no push policy is set as the default behaviour.
It’s important to note that this will not cause multiple runs to be created as we deduplicate these events on our side. However this will solve issues such as status checks disappearing from pull requests after additional commits outside the project root path are created. It also paves the way for future improvements we plan to soon introduce as well.
If you wish to retain the workflow of ignoring pull request events, you can apply this push policy:
package spacelift
track {
affected
input.push.branch == input.stack.branch
}
propose { affected }
ignore { not affected }
ignore { input.push.tag != "" }
affected {
filepath := input.push.affected_files[_]
startswith(filepath, input.stack.project_root)
}