Populate pipeline details (commit, author..) programmatically
Description
In a few cases, I'm creating a GitLab project whose purpose is to test/build/deploy another project from somewhere else (eg; from GitHub, or some artifact from somewhere or even another GitLab repo).
To this end, most of the time pipelines are being triggered through some webhook.
The webhook provides contextual details (eg; commit to test) as environment variables (which you can see in the right panel of the job view under "Trigger").
In practice, this setup works, however it has a bit of a disadvantage: the commit (and details) shown for the pipeline run are the ones of the GitLab project. This makes sense in most cases, but not in this case since I'm not interested in these details (eg; they'll always be the same).
Proposal
I see these possible solutions:
- provide details from the pipeline somehow (sounds a bit like a chicken and egg situation though)
- enhance the pipeline trigger API to allow specifying this information upfront
- this makes most sense to me, although it will limit the feature to work only through API (but it's also understandable IMO)
If the information should stay true and consistent in all cases, then at least add a customiseable description field that can be (somehow) populated and then displayed in the pipeline view.