Show which environments a commit is deployed to (and when)
Description
Sometimes I find myself trying to figure out when a specific commit was deployed to some environment (typically production).
For the projects that follow a consistent tagging procedure, this is easy. Just git tag --contain $commit_sha
. But for projects without tags, it becomes more time consuming, going through the list of deployed commits looking for the first one containing the interesting commit.
Proposal
For those commits that have a pipeline/build referring to it, the commit page shows the reference to the latest pipeline. Which would probably be the one deploying to the production environment.
It would be nice if all commit pages shows such a reference. I am not sure how to make this in a way that is generally useful. But something like:
If this commit a
doesn't refer to a pipeline then find the first commit referring to a pipeline and containing commit a
On the Commits Page of a Project add a column for Environment
Documentation blurb
(Write the start of the documentation of this feature here, include:
- Why should someone use it; what's the underlying problem.
- What is the solution.
- How does someone use this
During implementation, this can then be copied and used as a starter for the documentation.)