I am using webhooks to drive some automation and it would be really nice if the pipeline teams and their access level was exposed in webhooks. Here is an example of what I am thinking
{
...
"pipeline": {
"id": "ab12cd34-ef56-ab78-cd90-ef1011ab1213",
"url": "https://api.buildkite.com/v2/organizations/myorg/pipelines/the-best",
...
"teams": [
{
"id": "ab12cd34-ef56-ab78-cd90-ef1011ab1213",
"name": "Team A",
"access_level": "MANAGE_BUILD_AND_READ"
},
{
"id": "ab12cd34-ef56-ab78-cd90-ef1011ab1213",
"name": "Team B",
"access_level": "BUILD_AND_READ"
}
],
...
},
...
}