You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
title: New assigned/labeled actions for issue and pull request events
4
+
created_at: 2014-07-28
5
+
author_name: jdpace
6
+
---
7
+
8
+
As part of the [new GitHub Issues][issues-three], we've added new actions to the issues and pull requests webhook events: "labeled", "unlabeled", "assigned", and "unassigned". The payload will also include the respective assignee or label for these new actions.
9
+
10
+
If you already have a [webhook](/webhooks/) subscribed to the `issues` or `pull_request` events, you'll start seeing these new actions immediately. The new events can also be fetched from the [issue events API](/v3/issues/events/).
11
+
12
+
For more information, be sure to check out our documentation for the [IssuesEvent](/v3/activity/events/types/#issuesevent) or [PullRequestEvent](/v3/activity/events/types/#pullrequestevent). If you have any questions or feedback, please [drop us a line][contact].
Copy file name to clipboardExpand all lines: content/v3/activity/events/types.md
+6-4Lines changed: 6 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -245,7 +245,7 @@ Key | Type | Description
245
245
246
246
## IssuesEvent
247
247
248
-
Triggered when an [issue](/v3/issues) is created, closed or reopened.
248
+
Triggered when an [issue](/v3/issues) is assigned, unassigned, labeled, unlabeled, opened, closed, or reopened.
249
249
250
250
### Event name
251
251
@@ -255,8 +255,10 @@ Triggered when an [issue](/v3/issues) is created, closed or reopened.
255
255
256
256
Key | Type | Description
257
257
----|------|-------------
258
-
`action`|`string` | The action that was performed. Can be one of "opened", "closed", or "reopened".
258
+
`action`|`string` | The action that was performed. Can be one of "assigned", "unassigned", "labeled", "unlabeled", "opened", "closed", or "reopened".
259
259
`issue`|`object` | The [issue](/v3/issues) itself.
260
+
`assignee`|`object` | The optional user who was assigned or unassigned from the issue.
261
+
`label`|`object` | The optional label that was added or removed from the issue.
260
262
261
263
<%= webhook_payload "issues" %>
262
264
@@ -311,7 +313,7 @@ Triggered when a private repository is [open sourced](/v3/repos/#edit). Without
311
313
312
314
## PullRequestEvent
313
315
314
-
Triggered when a [pull request](/v3/pulls) is created, closed, reopened or synchronized.
316
+
Triggered when a [pull request](/v3/pulls) is assigned, unassigned, labeled, unlabeled, opened, closed, reopened, or synchronized.
315
317
316
318
### Event name
317
319
@@ -321,7 +323,7 @@ Triggered when a [pull request](/v3/pulls) is created, closed, reopened or synch
321
323
322
324
Key | Type | Description
323
325
----|------|-------------
324
-
`action`|`string` | The action that was performed. Can be one of "opened", "closed", "synchronize", or "reopened". If the action is "closed" and the `merged` key is `false`, the pull request was closed with unmerged commits. If the action is "closed" and the `merged` key is `true`, the pull request was merged.
326
+
`action`|`string` | The action that was performed. Can be one of "assigned", "unassigned", "labeled", "unlabeled", "opened", "closed", or "reopened", or "synchronize". If the action is "closed" and the `merged` key is `false`, the pull request was closed with unmerged commits. If the action is "closed" and the `merged` key is `true`, the pull request was merged.
325
327
`number`|`integer` | The pull request number.
326
328
`pull_request`|`object` | The [pull request](/v3/pulls) itself.
Copy file name to clipboardExpand all lines: content/webhooks/index.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -71,12 +71,12 @@ Name | Description
71
71
`fork` | Any time a Repository is forked.
72
72
`gollum` | Any time a Wiki page is updated.
73
73
`issue_comment` | Any time an Issue is commented on.
74
-
`issues` | Any time an Issue is openedor closed.
74
+
`issues` | Any time an Issue is assigned, unassigned, labeled, unlabeled, opened, closed, or reopened.
75
75
`member` | Any time a User is added as a collaborator to a non-Organization Repository.
76
76
`page_build` | Any time a Pages site is built or results in a failed build.
77
77
`public` | Any time a Repository changes from private to public.
78
78
`pull_request_review_comment` | Any time a Commit is commented on while inside a Pull Request review (the Files Changed tab).
79
-
`pull_request` | Any time a Pull Request is opened, closed, or synchronized (updated due to a new push in the branch that the pull request is tracking).
79
+
`pull_request` | Any time a Pull Request is assigned, unassigned, labeled, unlabeled, opened, closed, reopened, or synchronized (updated due to a new push in the branch that the pull request is tracking).
80
80
`push` | Any git push to a Repository. **This is the default event.**
81
81
`release` | Any time a Release is published in the Repository.
82
82
`status` | Any time a Repository has a status update from the API
0 commit comments