Skip to content

Commit 0e61e5f

Browse files
author
Hubot
committed
Sync changes from upstream repository
1 parent 48eaeac commit 0e61e5f

2 files changed

Lines changed: 28 additions & 20 deletions

File tree

content/v3/activity/events/types.md

Lines changed: 23 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -239,15 +239,19 @@ Key | Type | Description
239239

240240
## IssueCommentEvent
241241

242+
{% if page.version == 'dotcom' or page.version > 2.6 %}
242243
Triggered when an [issue comment](/v3/issues/comments/) is created, edited, or deleted.
244+
{% else %}
245+
Triggered when an [issue is commented on](/v3/issues/comments/).
246+
{% endif %}
243247

244248
### Events API payload
245249

246250
Key | Type | Description
247251
----|------|-------------
248-
`action`|`string` | The action that was performed on the comment. Can be one of "created", "edited", or "deleted".
252+
`action`|`string` | The action that was performed on the comment. {% if page.version == 'dotcom' or page.version > 2.6 %}Can be one of "created", "edited", or "deleted".
249253
`changes`|`object` | The changes to the comment if the action was "edited".
250-
`changes[body][from]` |`string` | The previous version of the body if the action was "edited".
254+
`changes[body][from]` |`string` | The previous version of the body if the action was "edited".{% else %}Currently, can only be "created".{% endif %}
251255
`issue`|`object` | The [issue](/v3/issues/) the comment belongs to.
252256
`comment`|`object` | The [comment](/v3/issues/comments/) itself.
253257

@@ -261,17 +265,17 @@ Key | Type | Description
261265

262266
## IssuesEvent
263267

264-
Triggered when an [issue](/v3/issues) is assigned, unassigned, labeled, unlabeled, opened, edited, closed, or reopened.
268+
Triggered when an [issue](/v3/issues) is assigned, unassigned, labeled, unlabeled, opened, {% if page.version == 'dotcom' or page.version > 2.6 %}edited, {% endif %}closed, or reopened.
265269

266270
### Events API payload
267271

268272
Key | Type | Description
269273
----|------|-------------
270-
`action`|`string` | The action that was performed. Can be one of "assigned", "unassigned", "labeled", "unlabeled", "opened", "edited", "closed", or "reopened".
271-
`issue`|`object` | The [issue](/v3/issues) itself.
274+
`action`|`string` | The action that was performed. Can be one of "assigned", "unassigned", "labeled", "unlabeled", "opened", {% if page.version == 'dotcom' or page.version > 2.6 %}"edited", {% endif %}"closed", or "reopened".
275+
`issue`|`object` | The [issue](/v3/issues) itself.{% if page.version == 'dotcom' or page.version > 2.6 %}
272276
`changes`|`object`| The changes to the issue if the action was "edited".
273277
`changes[title][from]`|`string` | The previous version of the title if the action was "edited".
274-
`changes[body][from]`|`string` | The previous version of the body if the action was "edited".
278+
`changes[body][from]`|`string` | The previous version of the body if the action was "edited".{% endif %}
275279
`assignee`|`object` | The optional user who was assigned or unassigned from the issue.
276280
`label`|`object` | The optional label that was added or removed from the issue.
277281

@@ -363,17 +367,17 @@ Triggered when a private repository is [open sourced](/v3/repos/#edit). Without
363367

364368
## PullRequestEvent
365369

366-
Triggered when a [pull request](/v3/pulls) is assigned, unassigned, labeled, unlabeled, opened, edited, closed, reopened, or synchronized.
370+
Triggered when a [pull request](/v3/pulls) is assigned, unassigned, labeled, unlabeled, opened, {% if page.version == 'dotcom' or page.version > 2.6 %}edited, {% endif %}closed, reopened, or synchronized.
367371

368372
### Events API payload
369373

370374
Key | Type | Description
371375
----|------|-------------
372-
`action`|`string` | The action that was performed. Can be one of "assigned", "unassigned", "labeled", "unlabeled", "opened", "edited", "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.
373-
`number`|`integer` | The pull request number.
376+
`action`|`string` | The action that was performed. Can be one of "assigned", "unassigned", "labeled", "unlabeled", "opened", {% if page.version == 'dotcom' or page.version > 2.6 %}"edited", {% endif %}"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.
377+
`number`|`integer` | The pull request number.{% if page.version == 'dotcom' or page.version > 2.6 %}
374378
`changes`|`object`| The changes to the comment if the action was "edited".
375379
`changes[title][from]`|`string` | The previous version of the title if the action was "edited".
376-
`changes[body][from]`|`string` | The previous version of the body if the action was "edited".
380+
`changes[body][from]`|`string` | The previous version of the body if the action was "edited".{% endif %}
377381
`pull_request`|`object` | The [pull request](/v3/pulls) itself.
378382

379383
### Webhook event name
@@ -386,15 +390,19 @@ Key | Type | Description
386390

387391
## PullRequestReviewCommentEvent
388392

393+
{% if page.version == 'dotcom' or page.version > 2.6 %}
389394
Triggered when a [comment on a Pull Request's unified diff](/v3/pulls/comments) is created, edited, or deleted (in the Files Changed tab).
395+
{% else %}
396+
Triggered when a [Pull Request's unified diff is commented on](/v3/pulls/comments) (in the Files Changed tab).
397+
{% endif %}
390398

391399
### Events API payload
392400

393401
Key | Type | Description
394402
----|------|-------------
395-
`action`|`string` | The action that was performed on the comment. Can be one of `created`, `edited`, or `deleted`.
403+
`action`|`string` | The action that was performed on the comment. {% if page.version == 'dotcom' or page.version > 2.6 %}Can be one of "created", "edited", or "deleted".
396404
`changes`|`object`| The changes to the comment if the action was "edited".
397-
`changes[body][from]`|`string` | The previous version of the body if the action was "edited".
405+
`changes[body][from]`|`string` | The previous version of the body if the action was "edited".{% else %}Currently, can only be "created".{% endif %}
398406
`pull_request`|`object` | The [pull request](/v3/pulls/) the comment belongs to.
399407
`comment`|`object` | The [comment](/v3/pulls/comments) itself.
400408

@@ -463,15 +471,15 @@ Key | Type | Description
463471

464472
## RepositoryEvent
465473

466-
Triggered when a repository is created, deleted, made public, or made private.
474+
Triggered when a repository is created{% if page.version == 'dotcom' or page.version > 2.6 %}, deleted, made public, or made private{% endif %}.
467475

468-
Events of this type are not visible in timelines. These events are only used to trigger hooks.
476+
Events of this type are not visible in timelines. These events are only used to trigger {% if page.version != 'dotcom' and page.version <= 2.6 %}organization {% endif %}hooks.
469477

470478
### Events API payload
471479

472480
Key | Type | Description
473481
----|------|-------------
474-
`action` |`string` | The action that was performed. This can be one of `created`, `deleted`, `publicized`, or `privatized`.
482+
`action` |`string` | The action that was performed. {% if page.version == 'dotcom' or page.version > 2.6 %}This can be one of "created", "deleted", "publicized", or "privatized".{% else %}Currently, can only be "created".{% endif %}
475483
`repository`|`object` | The [repository](/v3/repos/) itself.
476484

477485
### Webhook event name

content/webhooks/index.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,16 @@ Name | Description
4848
[`deployment_status`][event-types-deployment_status] | Any time a deployment for a Repository has a status update from the API.
4949
[`fork`][event-types-fork] | Any time a Repository is forked.
5050
[`gollum`][event-types-gollum] | Any time a Wiki page is updated.
51-
[`issue_comment`][event-types-issue_comment] | Any time a [comment on an issue](/v3/issues/comments/) is created, edited, or deleted.
52-
[`issues`][event-types-issues] | Any time an Issue is assigned, unassigned, labeled, unlabeled, opened, edited, closed, or reopened.
51+
[`issue_comment`][event-types-issue_comment] | {% if page.version == 'dotcom' or page.version > 2.6 %}Any time a [comment on an issue](/v3/issues/comments/) is created, edited, or deleted.{% else %}Any time an [issue is commented on](/v3/issues/comments).{% endif %}
52+
[`issues`][event-types-issues] | Any time an Issue is assigned, unassigned, labeled, unlabeled, opened, {% if page.version == 'dotcom' or page.version > 2.6 %}edited, {% endif %}closed, or reopened.
5353
[`member`][event-types-member] | Any time a User is added as a collaborator to a non-Organization Repository.
5454
[`membership`][event-types-membership] | Any time a User is added or removed from a team. **Organization hooks only**.
5555
[`page_build`][event-types-page_build] | Any time a Pages site is built or results in a failed build.
5656
[`public`][event-types-public] | Any time a Repository changes from private to public.
57-
[`pull_request_review_comment`][event-types-pull_request_review_comment] | Any time a [comment on a pull request's unified diff](/v3/pulls/comments) is created, edited, or deleted (in the Files Changed tab).
58-
[`pull_request`][event-types-pull_request] | Any time a Pull Request is assigned, unassigned, labeled, unlabeled, opened, edited, closed, reopened, or synchronized (updated due to a new push in the branch that the pull request is tracking).
57+
[`pull_request_review_comment`][event-types-pull_request_review_comment] | {% if page.version == 'dotcom' or page.version > 2.6 %}Any time a [comment on a Pull Request's unified diff](/v3/pulls/comments) is created, edited, or deleted{% else %}Any time a [Pull Request's unified diff is commented on](/v3/pulls/comments){% endif %} (in the Files Changed tab).
58+
[`pull_request`][event-types-pull_request] | Any time a Pull Request is assigned, unassigned, labeled, unlabeled, opened, {% if page.version == 'dotcom' or page.version > 2.6 %}edited, {% endif %}closed, reopened, or synchronized (updated due to a new push in the branch that the pull request is tracking).
5959
[`push`][event-types-push] | Any Git push to a Repository, including editing tags or branches. Commits via API actions that update references are also counted. **This is the default event.**
60-
[`repository`][event-types-repository] | Any time a Repository is created, deleted, made public, or made private.
60+
[`repository`][event-types-repository] | Any time a Repository is created{% if page.version == 'dotcom' or page.version > 2.6 %}, deleted, made public, or made private{% else %}. **Organization hooks only**{% endif %}.
6161
[`release`][event-types-release] | Any time a Release is published in a Repository.
6262
[`status`][event-types-status] | Any time a Repository has a status update from the API
6363
[`team_add`][event-types-team_add] | Any time a team is added or modified on a Repository.

0 commit comments

Comments
 (0)