Currently, when a run is triggered from a specific sha, the Spacelift UI does not show the branch, falling back instead to - . I asked this in the past in a Github issue and this is due to the difficulties of finding out the branch, as a commit can be in many branches.
However, what Spacelift knows, is whether the commit sha is in the tracked branch (and that is exposed to the policies via commit_exist_on_tracked_branch .
I would like that the UI of a commit sha triggered run in Spacelift does one of the following things:
Either if
commit_exist_on_tracked_branchis true, show the tracked branch name instead of-Or in the same line that the branch, sha, triggerer, etc information is shown, it show that the run is in a commit that belong to the tracked branch
I would favour 1, but 2 would be aceptable.