Allow sending title (commit message) when triggering pipeline in API v2

Our stack consists of a big monorepo where the pipelines for each project is conditionally triggered via the API v2 (POST /project/{project-slug}/pipeline). The authentication only allows a user API token (instead of a project API token). That means that for the developer it looks like the workflow was triggered by the one that owns the API token, resulting in that we have to create a bot user that holds the API token (to not spam a single developer).
The workflows also has an empty title (commit message) in the UI. That’s quite bad for the UX to track what workflows where triggered for what commit. So…

  1. It would be nice to be able to pass the commit message in the payload when triggering the pipeline.
  2. It would also be nice to be able to set the user for the triggered pipeline (other than the one that owns the API token), so the UI shows who originally initiated the workflows that were triggered.

Mainly, what I’m asking for is being more easily able to track what triggered the pipeline (or who triggered it)

I have the same issue. Setting x-attribution-actor-id as per the API docs didn’t seem to do anything either…

1 Like