Add a webhook event for when a pipeline stage starts
It would be nice if a webhook event gets fired when a stage of a pipeline is started -- something like status:stage_started.
The use case for this is that it is useful to me to know when my 'build' pipeline stage completes successfully so I can alert developers -- the subsequent 'test' stage is quite lengthy and having to wait until it finishes to let developers know that the build stage finished is less than ideal.
Something like:
{
"object_kind": "pipeline",
"object_attributes":{
"id": 31,
"ref": "master",
"tag": false,
"sha": "bcbb5ec396a2c0f828686f14fac9b80b780504f2",
"before_sha": "bcbb5ec396a2c0f828686f14fac9b80b780504f2",
"status": "stage_started",
"stage:": "test",
"stages":[
"build",
"test",
"deploy"
],
...
Note the "status" and "stage" fields. The "stage_started" status doesn't currently exist, but i wish it did. (I believe there is currently only "success" and "failed" to indicate success of the entire pipeline). The "stage" field also doesn't exist -- this would indicate the stage in the pipeline that has been started.
If this were in place, I would know that my 'build' stage has successfully completed when i receive a status:stage_started with a stage:test.