Skip to content

Commit efad2c7

Browse files
author
hubot
committed
Merge pull request github#565 from github/update-1406593772
2 parents f51f6e9 + 9eaf76b commit efad2c7

File tree

4 files changed

+47
-6
lines changed

4 files changed

+47
-6
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
kind: change
3+
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].
13+
14+
[issues-three]: https://github.com/blog/1866-the-new-github-issues
15+
[contact]: https://github.com/contact?form%5Bsubject%5D=New+Assigned+and+Labeled+Actions+for+Issues+and+Pull+Request+Events

content/v3/activity/events/types.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ Key | Type | Description
245245

246246
## IssuesEvent
247247

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.
249249

250250
### Event name
251251

@@ -255,8 +255,10 @@ Triggered when an [issue](/v3/issues) is created, closed or reopened.
255255

256256
Key | Type | Description
257257
----|------|-------------
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".
259259
`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.
260262

261263
<%= webhook_payload "issues" %>
262264

@@ -311,7 +313,7 @@ Triggered when a private repository is [open sourced](/v3/repos/#edit). Without
311313

312314
## PullRequestEvent
313315

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.
315317

316318
### Event name
317319

@@ -321,7 +323,7 @@ Triggered when a [pull request](/v3/pulls) is created, closed, reopened or synch
321323

322324
Key | Type | Description
323325
----|------|-------------
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.
325327
`number`|`integer` | The pull request number.
326328
`pull_request`|`object` | The [pull request](/v3/pulls) itself.
327329

content/v3/issues/events.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,30 @@ mentioned
4949
assigned
5050
: The issue was assigned to the actor.
5151

52+
unassigned
53+
: The actor was unassigned from the issue.
54+
55+
labeled
56+
: A label was added to the issue.
57+
58+
unlabeled
59+
: A label was removed from the issue.
60+
61+
milestoned
62+
: The issue was added to a milestone.
63+
64+
demilestoned
65+
: The issue was removed from a milestone.
66+
67+
renamed
68+
: The issue title was changed.
69+
70+
locked
71+
: The issue was locked by the actor.
72+
73+
unlocked
74+
: The issue was unlocked by the actor.
75+
5276
head_ref_deleted
5377
: The pull request's branch was deleted.
5478

content/webhooks/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,12 @@ Name | Description
7171
`fork` | Any time a Repository is forked.
7272
`gollum` | Any time a Wiki page is updated.
7373
`issue_comment` | Any time an Issue is commented on.
74-
`issues` | Any time an Issue is opened or closed.
74+
`issues` | Any time an Issue is assigned, unassigned, labeled, unlabeled, opened, closed, or reopened.
7575
`member` | Any time a User is added as a collaborator to a non-Organization Repository.
7676
`page_build` | Any time a Pages site is built or results in a failed build.
7777
`public` | Any time a Repository changes from private to public.
7878
`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).
8080
`push` | Any git push to a Repository. **This is the default event.**
8181
`release` | Any time a Release is published in the Repository.
8282
`status` | Any time a Repository has a status update from the API

0 commit comments

Comments
 (0)