Skip to content

Commit bbeaf6d

Browse files
labudisCopilotmchammer01
authored
Add field_added and field_removed to issues event activity types (#61345)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: mc <42146119+mchammer01@users.noreply.github.com>
1 parent cfa06d1 commit bbeaf6d

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

content/actions/reference/workflows-and-actions/events-that-trigger-workflows.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ jobs:
315315

316316
| Webhook event payload | Activity types | `GITHUB_SHA` | `GITHUB_REF` |
317317
| --------------------- | -------------- | ------------ | -------------|
318-
| [`issues`](/webhooks-and-events/webhooks/webhook-events-and-payloads#issues) | - `opened`<br/>- `edited`<br/>- `deleted`<br/>- `transferred`<br/>- `pinned`<br/>- `unpinned`<br/>- `closed`<br/>- `reopened`<br/>- `assigned`<br/>- `unassigned`<br/>- `labeled`<br/>- `unlabeled`<br/>- `locked`<br/>- `unlocked`<br/>- `milestoned`<br/> - `demilestoned`<br/> - `typed`<br/> - `untyped` | Last commit on default branch | Default branch |
318+
| [`issues`](/webhooks-and-events/webhooks/webhook-events-and-payloads#issues) | - `opened`<br/>- `edited`<br/>- `deleted`<br/>- `transferred`<br/>- `pinned`<br/>- `unpinned`<br/>- `closed`<br/>- `reopened`<br/>- `assigned`<br/>- `unassigned`<br/>- `labeled`<br/>- `unlabeled`<br/>- `locked`<br/>- `unlocked`<br/>- `milestoned`<br/> - `demilestoned`<br/> - `typed`<br/> - `untyped`{% ifversion issue-fields %}<br/> - `field_added`<br/> - `field_removed`{% endif %} | Last commit on default branch | Default branch |
319319

320320
> [!NOTE]
321321
> * {% data reusables.developer-site.multiple_activity_types %} For information about each activity type, see [AUTOTITLE](/webhooks-and-events/webhooks/webhook-events-and-payloads#issues). {% data reusables.developer-site.limit_workflow_to_activity_types %}
@@ -331,6 +331,18 @@ on:
331331
types: [opened, edited, milestoned]
332332
```
333333

334+
{% ifversion issue-fields %}
335+
336+
You can also run a workflow when an issue field value is set, changed, or cleared. The `field_added` activity type fires both when a field value is initially set and when an existing value is updated. The `field_removed` activity type fires when a field value is cleared.
337+
338+
```yaml
339+
on:
340+
issues:
341+
types: [field_added, field_removed]
342+
```
343+
344+
{% endif %}
345+
334346
## `label`
335347

336348
| Webhook event payload | Activity types | `GITHUB_SHA` | `GITHUB_REF` |

0 commit comments

Comments
 (0)