---
title: "Events reference"
description: "Which event kinds, actions and times each forge delivers through webhooks."
canonical_url: "https://forges.link/reference/events"
---
# Events reference

> Which event kinds, actions and times each forge delivers through webhooks.

Every provider lists the kinds and actions that its webhook deliveries translate into in `webhooks.events`, and the matrix on this page is built from that list. If you want to know what an event looks like, read [Events](https://forges.link/concepts/events). The following example checks whether a provider can deliver label events:

```ts
const labels = provider.webhooks.events.some(
  event => event.kind === 'label' && event.action === 'labelled',
)
```

## Kinds by forge

<event-matrix>

| Kind | GitHub | GitLab | Bitbucket | Forgejo | Gitea | Gitee | Azure DevOps | Cursor Origin | Tangled | Sourcehut | GitBucket | GitCafe | Upstream |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| `comment` | `created`, `edited`, `deleted` | `created` | `created`, `edited`, `deleted` | `created`, `edited`, `deleted` | `created`, `edited`, `deleted` | `created` | `created` | `created` | ❌ | ❌ | `created` | `created`, `edited`, `deleted` | `created`, `edited`, `deleted` |
| `review` | `submitted` | `submitted` | `submitted` | `submitted` | `submitted` | ❌ | `submitted` | `submitted` | ❌ | ❌ | ❌ | `submitted` | `submitted` |
| `review_comment` | `created`, `edited`, `deleted` | `created` | `created`, `edited`, `deleted` | `created` | `created` | ❌ | ❌ | ❌ | ❌ | ❌ | `created` | `created`, `edited`, `deleted` | `created` |
| `commit` | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | `synchronised` | ❌ | ❌ | ❌ | ❌ |
| `label` | `labelled`, `unlabelled` | `labelled`, `unlabelled` | ❌ | `edited`, `unlabelled` | `edited`, `unlabelled` | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | any | `labelled`, `unlabelled` |
| `state_change` | `opened`, `closed`, `reopened`, `merged`, `ready_for_review`, `converted_to_draft` | `opened`, `closed`, `reopened`, `merged` | `opened`, `closed`, `merged` | `opened`, `closed`, `reopened`, `merged` | `opened`, `closed`, `reopened`, `merged` | `opened`, `closed`, `reopened`, `merged` | `opened`, `closed`, `merged` | `opened`, `closed`, `merged` | `opened`, `closed`, `merged`, `reopened` | ❌ | `opened`, `closed`, `reopened`, `merged` | `opened`, `edited`, `closed`, `reopened`, `merged`, `converted_to_draft`, `ready_for_review`, `synchronised` | `opened`, `closed`, `reopened`, `merged` |
| `assignment` | `assigned`, `unassigned`, `review_requested` | `assigned`, `unassigned`, `review_requested` | ❌ | `assigned`, `unassigned` | `assigned`, `unassigned` | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | any | `assigned`, `unassigned` |
| `mention` | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |
| `referenced` | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |
| `reaction` | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | `added`, `removed` | ❌ |
| `push` | any | any | any | any | any | any | any | ❌ | any | any | any | any | any |
| `ref` | `created`, `deleted` | `created`, `deleted` | `created`, `deleted` | `created`, `deleted` | `created`, `deleted` | `created`, `deleted` | ❌ | ❌ | any | ❌ | `created` | `created`, `deleted` | `created`, `deleted` |
| `repo` | `renamed`, `transferred`, `archived`, `unarchived`, `edited` | ❌ | `renamed`, `transferred` | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | `created`, `edited`, `deleted` | ❌ | ❌ | `edited` |
| `installation` | any | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | any | ❌ | ❌ | ❌ | ❌ | ❌ |
| `membership` | any | any | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | any |
| `release` | `created`, `published`, `edited`, `deleted`, `other` | `published`, `edited`, `deleted` | ❌ | `published`, `edited`, `deleted` | `published`, `edited`, `deleted` | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | `created`, `published`, `edited`, `deleted` |
| `star` | `created`, `deleted` | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |
| `fork` | `created` | ❌ | `created` | `created` | `created` | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | `created` |
| `wiki` | `created`, `edited` | `created`, `edited`, `deleted` | ❌ | `created`, `edited`, `deleted`, `renamed` | `created`, `edited`, `deleted`, `renamed` | ❌ | ❌ | ❌ | ❌ | ❌ | `created`, `edited` | ❌ | ❌ |
| `issue_type` | `typed`, `untyped` | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |
| `other` | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | `renamed` | ❌ | ❌ | any | ❌ |

Pushin.eu, Cloudflare Artifacts and Entire receive no webhooks.

GitLab reports `eventKinds: 'heuristic'`, so `kind` can be `other` for wording the provider doesn't recognise.

</event-matrix>

The matrix covers webhook deliveries. Events from `threads.events()` and `sources.subscribe()` use the same kinds, but providers don't list which ones they produce. A kind that is declared without an action, shown as `any`, can arrive with any action, including `other`. Whatever the kind, `kindRaw` and `actionRaw` always keep the names that the forge itself uses.

## Event times

A webhook event's `occurredAt` comes from the first of these timestamps that its payload has. When it has none, or when the event is a deletion, the event has `undated: true` and `occurredAt` is the time the delivery reached `forges`:

| Forge | Timestamps, in order | Undated deliveries |
| --- | --- | --- |
| GitHub | `created_at` of an opened thread, `merged_at` or `closed_at` of a closed one, the comment's `created_at` or, when edited, `updated_at`, the review's `submitted_at`, the release's `published_at` when published, the star's `starred_at`, the new fork's `created_at`, the repository's `pushed_at` for a push and its `updated_at` for a rename, transfer, archive or visibility change, then the thread's `updated_at` | Pings, deletions, branch and tag creation, installations, memberships, `watch` stars, wiki edits and release actions other than publishing |
| GitLab | `created_at` of an opened thread, `closed_at` of a closed issue, the note's `created_at` or, when updated, `updated_at`, the release's `created_at` when created, the newest commit's `timestamp`, the member's `created_at` when added, then `updated_at` | Pushes without commits, removed members, wiki edits and release updates and deletions |
| Bitbucket | The pull request's `created_on` when created, the comment's `created_on` or, when updated, `updated_on`, the approval's or the request for changes' `date`, the newest commit's `date`, then the pull request's `updated_on` | Deleted comments, renames, transfers, forks and branch or tag changes without commits |
| Forgejo, Gitea | `created_at` of an opened thread, `merged_at` or `closed_at` of a closed one, the comment's `created_at` or, when edited, `updated_at`, the release's `published_at` when published, the new fork's `created_at`, the head commit's `timestamp`, then the thread's `updated_at` | Deletions, branch and tag creation, pushes without commits, wiki edits and release actions other than publishing |
| Gitee | `created_at` of an opened thread, `merged_at` of a merge, `closed_at` or `finished_at` of a close, the comment's `created_at`, then the thread's `updated_at`, or the head commit's `timestamp` for a push | Branch and tag changes without commits |
| Azure DevOps | The event's `createdDate` | Events without one |
| Cursor Origin | The event's `eventTime` | Events without one |
| Tangled | The pull's `created_at` when it is created | Every other delivery |
| Sourcehut | The delivery's `date`; the event's `created` or the email's `received` for a thread's timeline | Deliveries whose query omits `date`, and timeline entries without a `created` |

A push takes the time of its newest commit where the forge doesn't report when the push happened, so a push of older commits can be dated before it happened. Tangled sends no time for a change other than a new pull: its `repository.updated_at` is the time the repository was created.

## Detail and native events

`detail.type` tells you which fields an event carries, so narrowing on it gives you a typed `detail`. The `repo` kind has a separate detail type for each kind of change. An event whose kind has no detail type has no `detail` at all.

When you register a webhook, `webhooks.create({ events })` translates each kind into the event names of the forge, and `webhook.events` maps them back again. If you need a forge event that has no kind, subscribe to it by name with `nativeEvents`. The following table lists the detail type and fields of each kind:

<event-kinds>

| Kind | `detail.type` | Fields |
| --- | --- | --- |
| `comment` | `comment` | `comment?: CommentRef \| CommitCommentRef`, `body?: string` |
| `review` | `review` | `state: ReviewState`, `stateRaw?: string`, `body?: string`, `review?: ReviewRef` |
| `review_comment` | `review_comment` | `comment?: CommentRef`, `body?: string`, `path?: string`, `line?: number` |
| `commit` | none | none |
| `label` | `label` | `label: string` |
| `state_change` | `state_change` | `state?: ThreadState`, `draft?: boolean`, `reason?: string` |
| `assignment` | `assignment` | `assignee?: Actor` |
| `mention` | none | none |
| `referenced` | `referenced` | `from?: ThreadRef \| CommitRef`, `fromRepo?: RepoRef`, `text?: string` |
| `reaction` | none | none |
| `push` | `push` | `ref: string`, `before?: string`, `after?: string`, `commitCount?: number`, `forced: boolean`, `commits: PushCommit[]` |
| `ref` | `ref` | `ref: string`, `refType: string` |
| `repo` | `repo_renamed` | `from: string`, `to: string` |
| `repo` | `repo_transferred` | `fromOwner?: string`, `toOwner?: string` |
| `repo` | `repo_archived` | `archived: boolean` |
| `repo` | `repo_visibility` | `isPublic: boolean` |
| `installation` | `installation` | `actionRaw: string`, `installationId?: string`, `added: RepoRef[]`, `removed: RepoRef[]` |
| `membership` | `membership` | `actionRaw: string`, `member?: Actor` |
| `release` | `release` | `release?: ReleaseRef`, `tag?: string`, `name?: string`, `body?: string`, `isPrerelease?: boolean`, `isDraft?: boolean`, `url?: string` |
| `star` | none | none |
| `fork` | `fork` | `fork?: RepoRef` |
| `wiki` | `wiki` | `title?: string`, `url?: string` |
| `issue_type` | `issue_type` | `issueType: IssueType` |
| `other` | none | none |

| Kind | GitHub | GitLab | Bitbucket | Forgejo | Gitea | Gitee | Tangled | GitBucket | GitCafe | Upstream |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| `comment` | `issue_comment`, `commit_comment`, `discussion_comment` | `note_events`, `confidential_note_events` | `pullrequest:comment_created`, `pullrequest:comment_updated`, `pullrequest:comment_deleted` | `issue_comment`, `pull_request_comment` | `issue_comment`, `pull_request_comment` | `note_events` | ❌ | `issue_comment` | `issue.comment_created`, `issue.comment_updated`, `issue.comment_deleted`, `pull.comment_created`, `pull.comment_updated`, `pull.comment_deleted` | `issue_comment` |
| `review` | `pull_request_review` | `merge_requests_events` | `pullrequest:approved`, `pullrequest:unapproved`, `pullrequest:changes_request_created` | `pull_request_review_approved`, `pull_request_review_rejected`, `pull_request_review_comment` | `pull_request_review_approved`, `pull_request_review_rejected`, `pull_request_review_comment` | `merge_requests_events` | ❌ | ❌ | `pull.review_submitted`, `pull.review_dismissed` | `pull_request_review` |
| `review_comment` | `pull_request_review_comment` | `note_events` | `pullrequest:comment_created`, `pullrequest:comment_updated`, `pullrequest:comment_deleted` | `pull_request_review_comment` | `pull_request_review_comment` | ❌ | ❌ | `pull_request_review_comment` | `pull.comment_created`, `pull.comment_updated`, `pull.comment_deleted` | `pull_request_review_comment` |
| `commit` | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | `pull_request:resubmitted` | ❌ | ❌ | ❌ |
| `label` | `issues`, `pull_request`, `label` | `issues_events`, `merge_requests_events` | ❌ | `issue_label`, `pull_request_label` | `issue_label`, `pull_request_label` | `issues_events`, `merge_requests_events` | ❌ | ❌ | `issue.labels_updated`, `pull.labels_updated` | `issues`, `pull_request` |
| `state_change` | `issues`, `pull_request`, `discussion` | `issues_events`, `confidential_issues_events`, `merge_requests_events` | `pullrequest:created`, `pullrequest:updated`, `pullrequest:fulfilled`, `pullrequest:rejected` | `issues`, `pull_request`, `pull_request_sync` | `issues`, `pull_request`, `pull_request_sync` | `issues_events`, `merge_requests_events` | `pull_request:created`, `pull_request:closed`, `pull_request:merged`, `pull_request:reopened` | `issues`, `pull_request` | `issue.created`, `issue.updated`, `issue.closed`, `issue.reopened`, `pull.created`, `pull.updated`, `pull.closed`, `pull.reopened`, `pull.merged`, `pull.drafted`, `pull.ready`, `pull.synchronized` | `issues`, `pull_request` |
| `assignment` | `issues`, `pull_request` | `issues_events`, `merge_requests_events` | ❌ | `issue_assign`, `pull_request_assign` | `issue_assign`, `pull_request_assign` | `issues_events`, `merge_requests_events` | ❌ | ❌ | `issue.assignees_updated`, `pull.assignees_updated`, `pull.reviewers_updated` | `issues`, `pull_request` |
| `reaction` | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | `issue.reaction_added`, `issue.reaction_removed`, `pull.reaction_added`, `pull.reaction_removed` | ❌ |
| `push` | `push` | `push_events` | `repo:push` | `push` | `push` | `push_events` | `push` | `push` | `git.push` | `push` |
| `ref` | `create`, `delete` | `tag_push_events`, `push_events` | `repo:push` | `create`, `delete` | `create`, `delete` | `tag_push_events` | ❌ | `create` | `git.ref_created`, `git.ref_deleted` | `create`, `delete` |
| `repo` | `repository`, `public` | ❌ | `repo:updated`, `repo:transfer` | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | `repository` |
| `installation` | `installation`, `installation_repositories` | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |
| `membership` | `member`, `membership`, `organization`, `team` | `member_events` | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | `member` |
| `release` | `release` | `releases_events` | ❌ | `release` | `release` | ❌ | ❌ | ❌ | ❌ | `release` |
| `star` | `star` | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |
| `fork` | `fork` | ❌ | `repo:fork` | `fork` | `fork` | ❌ | ❌ | ❌ | ❌ | `fork` |
| `wiki` | `gollum` | `wiki_page_events` | ❌ | `wiki` | `wiki` | ❌ | ❌ | `gollum` | ❌ | ❌ |
| `issue_type` | `issues` | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |
| `other` | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | `repository:renamed` | ❌ | ❌ | ❌ |

</event-kinds>


## Sitemap

See the full [sitemap](https://forges.link/sitemap.md) for all pages.
