Skip to content

Commit 0d0d3c0

Browse files
sbrunnerlucascosti
andauthored
Add some missing properties on workflow_run events (#2767)
Co-authored-by: Lucas Costi <lucascosti@users.noreply.github.com>
1 parent 690cace commit 0d0d3c0

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

content/developers/webhooks-and-events/webhook-events-and-payloads.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1335,9 +1335,8 @@ When a {% data variables.product.prodname_actions %} workflow run is requested o
13351335
13361336
#### Webhook payload object
13371337
1338-
Key | Type | Description
1339-
----|------|-------------
1340-
`action` | `string` | Most webhook payloads contain an `action` property that contains the specific activity that triggered the event.
1338+
{% data reusables.webhooks.workflow_run_properties %}
1339+
{% data reusables.webhooks.workflow_desc %}
13411340
{% data reusables.webhooks.org_desc %}
13421341
{% data reusables.webhooks.repo_desc %}
13431342
{% data reusables.webhooks.sender_desc %}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
`workflow` | `object` | The workflow that generated the workflow run.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Key | Type | Description
2+
----|------|-------------
3+
`action`|`string` | The action that was performed. Can be one of `requested` or `completed`.
4+
`workflow_run`| `object` | The workflow run. Many `workflow_run` keys, such as `head_branch`, `conclusion`, and `pull_requests` are the same as those in a [`check_suite`](#check_suite) object.

0 commit comments

Comments
 (0)