我们经常发布文档更新,此页面的翻译可能仍在进行中。有关最新信息,请访问英文文档。如果此页面上的翻译有问题,请告诉我们

此版本的 GitHub Enterprise 已停止服务 2020-11-12. 即使针对重大安全问题,也不会发布补丁。 要获得更好的性能、改进的安全性和新功能,请升级到 GitHub Enterprise 的最新版本。 如需升级方面的帮助,请联系 GitHub Enterprise 支持

Issue event types

For the Issues Events API and Timeline API, learn about each event type, the triggering action on GitHub, and each event's unique properties.

本文内容

Issue events are triggered by activity in issues and pull requests and are available in the Issue Events API and the Timeline Events API. Each event type specifies whether the event is available in the Issue Events or Timeline Events APIs.

GitHub's REST API considers every pull request to be an issue, but not every issue is a pull request. For this reason, the Issue Events and Timeline Events endpoints may return both issues and pull requests in the response. Pull requests have a pull_request property in the issue object. Because pull requests are issues, issue and pull request numbers do not overlap in a repository. For example, if you open your first issue in a repository, the number will be 1. If you then open a pull request, the number will be 2. Each event type specifies if the event occurs in pull request, issues, or both.

Issue event object common properties

Issue events all have the same object structure, except events that are only available in the Timeline Events API. Some events also include additional properties that provide more context about the event resources. Refer to the specific event to for details about any properties that differ from this object format.

名称类型描述
id整数The unique identifier of the event.
node_id字符串The Global Node ID of the event.
url字符串用于提取事件的 REST API URL。
actor对象The person who generated the event.
event字符串识别所发生事件的实际类型。
commit_id字符串引用此议题的提交的 SHA。
commit_url字符串指向引用此议题的提交的 GitHub REST API 链接。
created_at字符串指示事件发生时间的时间戳。

added_to_project

The issue or pull request was added to a project board. 仅当在仓库启用了项目板时,您才会在响应中看到此事件。

可用性

Issue typeIssue events APITimeline events API
  • 议题
  • 拉取请求
XX

Event object properties

注:项目卡详细信息现在显示在项目相关议题和时间线事件的 REST API 响应中。 此功能现在可供开发者预览。 有关详细信息,请参阅博客文章

要接收 project_card 属性,必须为仓库启用项目板,并且必须在 Accept 标头中提供自定义媒体类型

application/vnd.github.starfox-preview+json

警告: 在预览期间,API 可能会更改,恕不另行通知。 预览功能不支持用于生产。 如果遇到任何问题,请联系 your site administrator。

名称类型描述
id整数The unique identifier of the event.
node_id字符串The Global Node ID of the event.
url字符串用于提取事件的 REST API URL。
actor对象The person who generated the event.
event字符串识别所发生事件的实际类型。
commit_id字符串引用此议题的提交的 SHA。
commit_url字符串指向引用此议题的提交的 GitHub REST API 链接。
created_at字符串指示事件发生时间的时间戳。
project_cardobject项目卡对象。 project_id

已分配

The issue or pull request was assigned to a user.

可用性

Issue typeIssue events APITimeline events API
  • 议题
  • 拉取请求
XX

Event object properties

名称类型描述
id整数The unique identifier of the event.
node_id字符串The Global Node ID of the event.
url字符串用于提取事件的 REST API URL。
actor对象The person who generated the event.
event字符串识别所发生事件的实际类型。
commit_id字符串引用此议题的提交的 SHA。
commit_url字符串指向引用此议题的提交的 GitHub REST API 链接。
created_at字符串指示事件发生时间的时间戳。
assigneeobject从此议题取消分配的人。 assigner

automatic_base_change_failed

GitHub unsuccessfully attempted to automatically change the base branch of the pull request.

可用性

Issue typeIssue events APITimeline events API
  • 拉取请求
X

Event object properties

名称类型描述
id整数The unique identifier of the event.
node_id字符串The Global Node ID of the event.
url字符串用于提取事件的 REST API URL。
actor对象The person who generated the event.
event字符串识别所发生事件的实际类型。
commit_id字符串引用此议题的提交的 SHA。
commit_url字符串指向引用此议题的提交的 GitHub REST API 链接。
created_at字符串指示事件发生时间的时间戳。

automatic_base_change_succeeded

GitHub successfully attempted to automatically change the base branch of the pull request.

可用性

Issue typeIssue events APITimeline events API
  • 拉取请求
X

Event object properties

名称类型描述
id整数The unique identifier of the event.
node_id字符串The Global Node ID of the event.
url字符串用于提取事件的 REST API URL。
actor对象The person who generated the event.
event字符串识别所发生事件的实际类型。
commit_id字符串引用此议题的提交的 SHA。
commit_url字符串指向引用此议题的提交的 GitHub REST API 链接。
created_at字符串指示事件发生时间的时间戳。

base_ref_changed

The base reference branch of the pull request changed.

可用性

Issue typeIssue events APITimeline events API
  • 拉取请求
X

Event object properties

名称类型描述
id整数The unique identifier of the event.
node_id字符串The Global Node ID of the event.
url字符串用于提取事件的 REST API URL。
actor对象The person who generated the event.
event字符串识别所发生事件的实际类型。
commit_id字符串引用此议题的提交的 SHA。
commit_url字符串指向引用此议题的提交的 GitHub REST API 链接。
created_at字符串指示事件发生时间的时间戳。

closed

The issue or pull request was closed. When the commit_id is present, it identifies the commit that closed the issue using "closes / fixes" syntax. For more information about the syntax, see "Linking a pull request to an issue".

可用性

Issue typeIssue events APITimeline events API
  • 议题
  • 拉取请求
XX

Event object properties

名称类型描述
id整数The unique identifier of the event.
node_id字符串The Global Node ID of the event.
url字符串用于提取事件的 REST API URL。
actor对象The person who generated the event.
event字符串识别所发生事件的实际类型。
commit_id字符串引用此议题的提交的 SHA。
commit_url字符串指向引用此议题的提交的 GitHub REST API 链接。
created_at字符串指示事件发生时间的时间戳。

已评论

A comment was added to the issue or pull request.

可用性

Issue typeIssue events APITimeline events API
  • 议题
  • 拉取请求
X

Event object properties

此事件属性不使用与议题事件对象通用属性相同的结构。 此事件返回以下属性。

名称类型描述
url字符串The REST API URL to retrieve the issue comment.
html_url字符串The HTML URL of the issue comment.
issue_url字符串The HTML URL of the issue.
id整数The unique identifier of the event.
node_id字符串The Global Node ID of the event.
用户对象The person who commented on the issue.
created_at字符串The timestamp indicating when the comment was added.
updated_at字符串The timestamp indicating when the comment was updated or created, if the comment is never updated.
author_association字符串The permissions the user has in the issue's repository. For example, the value would be "OWNER" if the owner of repository created a comment.
正文字符串The comment body text.
event字符串The event value is "commented".
actor对象The person who generated the event.

committed

A commit was added to the pull request's HEAD branch.

可用性

Issue typeIssue events APITimeline events API
  • 拉取请求
X

Event object properties

此事件属性不使用与议题事件对象通用属性相同的结构。 此事件返回以下属性。

名称类型描述
sha字符串The SHA of the commit in the pull request.
node_id字符串The Global Node ID of the event.
url字符串The REST API URL to retrieve the commit.
html_url字符串The HTML URL of the commit.
作者对象The person who authored the commit.
提交者对象The person who committed the commit on behalf of the author.
对象The Git tree of the commit.
message字符串提交消息.
父项array of objectsA list of parent commits.
verfication对象The result of verifying the commit's signature. For more information, see "Signature verification object."
event字符串The event value is "committed".

connected

The issue or pull request was linked to another issue or pull request. For more information, see "Linking a pull request to an issue".

可用性

Issue typeIssue events APITimeline events API
  • 议题
  • 拉取请求
XX

Event object properties

名称类型描述
id整数The unique identifier of the event.
node_id字符串The Global Node ID of the event.
url字符串用于提取事件的 REST API URL。
actor对象The person who generated the event.
event字符串识别所发生事件的实际类型。
commit_id字符串引用此议题的提交的 SHA。
commit_url字符串指向引用此议题的提交的 GitHub REST API 链接。
created_at字符串指示事件发生时间的时间戳。

convert_to_draft

The pull request was converted to draft mode.

可用性

Issue typeIssue events APITimeline events API
  • 拉取请求
XX

Event object properties

名称类型描述
id整数The unique identifier of the event.
node_id字符串The Global Node ID of the event.
url字符串用于提取事件的 REST API URL。
actor对象The person who generated the event.
event字符串识别所发生事件的实际类型。
commit_id字符串引用此议题的提交的 SHA。
commit_url字符串指向引用此议题的提交的 GitHub REST API 链接。
created_at字符串指示事件发生时间的时间戳。

converted_note_to_issue

The issue was created by converting a note in a project board to an issue. 仅当在仓库启用了项目板时,您才会在响应中看到此事件。

可用性

Issue typeIssue events APITimeline events API
  • 议题
XX

Event object properties

注:项目卡详细信息现在显示在项目相关议题和时间线事件的 REST API 响应中。 此功能现在可供开发者预览。 有关详细信息,请参阅博客文章

要接收 project_card 属性,必须为仓库启用项目板,并且必须在 Accept 标头中提供自定义媒体类型

application/vnd.github.starfox-preview+json

警告: 在预览期间,API 可能会更改,恕不另行通知。 预览功能不支持用于生产。 如果遇到任何问题,请联系 your site administrator。

名称类型描述
id整数The unique identifier of the event.
node_id字符串The Global Node ID of the event.
url字符串用于提取事件的 REST API URL。
actor对象The person who generated the event.
event字符串识别所发生事件的实际类型。
commit_id字符串引用此议题的提交的 SHA。
commit_url字符串指向引用此议题的提交的 GitHub REST API 链接。
created_at字符串指示事件发生时间的时间戳。
project_cardobject项目卡对象。 project_id

cross-referenced

The issue or pull request was referenced from another issue or pull request.

可用性

Issue typeIssue events APITimeline events API
  • 议题
  • 拉取请求
X

Event object properties

此事件属性不使用与议题事件对象通用属性相同的结构。 此事件返回以下属性。

名称类型描述
actor对象The person who generated the event.
created_at字符串The timestamp indicating when the cross-reference was added.
updated_at字符串The timestamp indicating when the cross-reference was updated or created, if the cross-reference is never updated.
source对象The issue or pull request that added a cross-reference.
source[type]字符串This value will always be "issue" because pull requests are of type issue. Only cross-reference events triggered by issues or pull requests are returned in the Timeline Events API. To determine if the issue that triggered the event is a pull request, you can check if the source[issue][pull_request object exists.
source[issue]对象The issue object that added the cross-reference.
event字符串The event value is "cross-referenced".

demilestoned

The issue or pull request was removed from a milestone.

可用性

Issue typeIssue events APITimeline events API
  • 议题
  • 拉取请求
XX

Event object properties

名称类型描述
id整数The unique identifier of the event.
node_id字符串The Global Node ID of the event.
url字符串用于提取事件的 REST API URL。
actor对象The person who generated the event.
event字符串识别所发生事件的实际类型。
commit_id字符串引用此议题的提交的 SHA。
commit_url字符串指向引用此议题的提交的 GitHub REST API 链接。
created_at字符串指示事件发生时间的时间戳。
milestoneobjectThe milestone object. milestone[title]

deployed

The pull request was deployed.

可用性

Issue typeIssue events APITimeline events API
  • 拉取请求
XX

Event object properties

名称类型描述
id整数The unique identifier of the event.
node_id字符串The Global Node ID of the event.
url字符串用于提取事件的 REST API URL。
actor对象The person who generated the event.
event字符串识别所发生事件的实际类型。
commit_id字符串引用此议题的提交的 SHA。
commit_url字符串指向引用此议题的提交的 GitHub REST API 链接。
created_at字符串指示事件发生时间的时间戳。

deployment_environment_changed

The pull request deployment environment was changed.

可用性

Issue typeIssue events APITimeline events API
  • 拉取请求
X

Event object properties

名称类型描述
id整数The unique identifier of the event.
node_id字符串The Global Node ID of the event.
url字符串用于提取事件的 REST API URL。
actor对象The person who generated the event.
event字符串识别所发生事件的实际类型。
commit_id字符串引用此议题的提交的 SHA。
commit_url字符串指向引用此议题的提交的 GitHub REST API 链接。
created_at字符串指示事件发生时间的时间戳。

disconnected

The issue or pull request was unlinked from another issue or pull request. For more information, see "Linking a pull request to an issue".

可用性

Issue typeIssue events APITimeline events API
  • 议题
  • 拉取请求
XX

Event object properties

名称类型描述
id整数The unique identifier of the event.
node_id字符串The Global Node ID of the event.
url字符串用于提取事件的 REST API URL。
actor对象The person who generated the event.
event字符串识别所发生事件的实际类型。
commit_id字符串引用此议题的提交的 SHA。
commit_url字符串指向引用此议题的提交的 GitHub REST API 链接。
created_at字符串指示事件发生时间的时间戳。

head_ref_deleted

The pull request's HEAD branch was deleted.

可用性

Issue typeIssue events APITimeline events API
  • 拉取请求
XX

Event object properties

名称类型描述
id整数The unique identifier of the event.
node_id字符串The Global Node ID of the event.
url字符串用于提取事件的 REST API URL。
actor对象The person who generated the event.
event字符串识别所发生事件的实际类型。
commit_id字符串引用此议题的提交的 SHA。
commit_url字符串指向引用此议题的提交的 GitHub REST API 链接。
created_at字符串指示事件发生时间的时间戳。

head_ref_restored

The pull request's HEAD branch was restored to the last known commit.

可用性

Issue typeIssue events APITimeline events API
  • 拉取请求
XX

Event object properties

名称类型描述
id整数The unique identifier of the event.
node_id字符串The Global Node ID of the event.
url字符串用于提取事件的 REST API URL。
actor对象The person who generated the event.
event字符串识别所发生事件的实际类型。
commit_id字符串引用此议题的提交的 SHA。
commit_url字符串指向引用此议题的提交的 GitHub REST API 链接。
created_at字符串指示事件发生时间的时间戳。

labeled

A label was added to the issue or pull request.

可用性

Issue typeIssue events APITimeline events API
  • 议题
  • 拉取请求
XX

Event object properties

名称类型描述
id整数The unique identifier of the event.
node_id字符串The Global Node ID of the event.
url字符串用于提取事件的 REST API URL。
actor对象The person who generated the event.
event字符串识别所发生事件的实际类型。
commit_id字符串引用此议题的提交的 SHA。
commit_url字符串指向引用此议题的提交的 GitHub REST API 链接。
created_at字符串指示事件发生时间的时间戳。
labelobject从议题删除的标签 label[name]

locked

The issue or pull request was locked.

可用性

Issue typeIssue events APITimeline events API
  • 议题
  • 拉取请求
XX

Event object properties

注:您现在可以使用 REST API 在锁定议题时添加原因,并且在包含议题或拉取请求的响应中会看到锁定原因。 在 locked 事件中也会看到锁定原因。 此功能目前可供开发者预览。 有关完整详情,请参阅博客文章。 要访问此功能,必须在 Accept 标头中提供自定义媒体类型

application/vnd.github.sailor-v-preview+json

警告: 在预览期间,API 可能会更改,恕不另行通知。 预览功能不支持用于生产。 如果遇到任何问题,请联系 your site administrator。

名称类型描述
id整数The unique identifier of the event.
node_id字符串The Global Node ID of the event.
url字符串用于提取事件的 REST API URL。
actor对象The person who generated the event.
event字符串识别所发生事件的实际类型。
commit_id字符串引用此议题的提交的 SHA。
commit_url字符串指向引用此议题的提交的 GitHub REST API 链接。
created_at字符串指示事件发生时间的时间戳。
lock_reasonstringThe reason an issue or pull request conversation was locked, if one was provided.

已提及

The actor was @mentioned in an issue or pull request body.

可用性

Issue typeIssue events APITimeline events API
  • 议题
  • 拉取请求
XX

Event object properties

名称类型描述
id整数The unique identifier of the event.
node_id字符串The Global Node ID of the event.
url字符串用于提取事件的 REST API URL。
actor对象The person who generated the event.
event字符串识别所发生事件的实际类型。
commit_id字符串引用此议题的提交的 SHA。
commit_url字符串指向引用此议题的提交的 GitHub REST API 链接。
created_at字符串指示事件发生时间的时间戳。

marked_as_duplicate

A user with write permissions marked an issue as a duplicate of another issue, or a pull request as a duplicate of another pull request.

可用性

Issue typeIssue events APITimeline events API
  • 议题
  • 拉取请求
XX

Event object properties

名称类型描述
id整数The unique identifier of the event.
node_id字符串The Global Node ID of the event.
url字符串用于提取事件的 REST API URL。
actor对象The person who generated the event.
event字符串识别所发生事件的实际类型。
commit_id字符串引用此议题的提交的 SHA。
commit_url字符串指向引用此议题的提交的 GitHub REST API 链接。
created_at字符串指示事件发生时间的时间戳。

merged

The pull request was merged. The commit_id attribute is the SHA1 of the HEAD commit that was merged. The commit_repository is always the same as the main repository.

可用性

Issue typeIssue events APITimeline events API
  • 拉取请求
X

Event object properties

名称类型描述
id整数The unique identifier of the event.
node_id字符串The Global Node ID of the event.
url字符串用于提取事件的 REST API URL。
actor对象The person who generated the event.
event字符串识别所发生事件的实际类型。
commit_id字符串引用此议题的提交的 SHA。
commit_url字符串指向引用此议题的提交的 GitHub REST API 链接。
created_at字符串指示事件发生时间的时间戳。

milestoned

The issue or pull request was added to a milestone.

可用性

Issue typeIssue events APITimeline events API
  • 议题
  • 拉取请求
XX

Event object properties

名称类型描述
id整数The unique identifier of the event.
node_id字符串The Global Node ID of the event.
url字符串用于提取事件的 REST API URL。
actor对象The person who generated the event.
event字符串识别所发生事件的实际类型。
commit_id字符串引用此议题的提交的 SHA。
commit_url字符串指向引用此议题的提交的 GitHub REST API 链接。
created_at字符串指示事件发生时间的时间戳。
milestoneobjectThe milestone object. milestone[title]

moved_columns_in_project

The issue or pull request was moved between columns in a project board. 仅当在仓库启用了项目板时,您才会在响应中看到此事件。

可用性

Issue typeIssue events APITimeline events API
  • 议题
  • 拉取请求
XX

Event object properties

注:项目卡详细信息现在显示在项目相关议题和时间线事件的 REST API 响应中。 此功能现在可供开发者预览。 有关详细信息,请参阅博客文章

要接收 project_card 属性,必须为仓库启用项目板,并且必须在 Accept 标头中提供自定义媒体类型

application/vnd.github.starfox-preview+json

警告: 在预览期间,API 可能会更改,恕不另行通知。 预览功能不支持用于生产。 如果遇到任何问题,请联系 your site administrator。

名称类型描述
id整数The unique identifier of the event.
node_id字符串The Global Node ID of the event.
url字符串用于提取事件的 REST API URL。
actor对象The person who generated the event.
event字符串识别所发生事件的实际类型。
commit_id字符串引用此议题的提交的 SHA。
commit_url字符串指向引用此议题的提交的 GitHub REST API 链接。
created_at字符串指示事件发生时间的时间戳。
project_cardobject项目卡对象。 project_id
previous_column_namestringThe name of the column the issue was moved from.

已固定

The issue was pinned.

可用性

Issue typeIssue events APITimeline events API
  • 议题
XX

Event object properties

名称类型描述
id整数The unique identifier of the event.
node_id字符串The Global Node ID of the event.
url字符串用于提取事件的 REST API URL。
actor对象The person who generated the event.
event字符串识别所发生事件的实际类型。
commit_id字符串引用此议题的提交的 SHA。
commit_url字符串指向引用此议题的提交的 GitHub REST API 链接。
created_at字符串指示事件发生时间的时间戳。

ready_for_review

A pull request was created that is not in draft mode.

可用性

Issue typeIssue events APITimeline events API
  • 拉取请求
XX

Event object properties

名称类型描述
id整数The unique identifier of the event.
node_id字符串The Global Node ID of the event.
url字符串用于提取事件的 REST API URL。
actor对象The person who generated the event.
event字符串识别所发生事件的实际类型。
commit_id字符串引用此议题的提交的 SHA。
commit_url字符串指向引用此议题的提交的 GitHub REST API 链接。
created_at字符串指示事件发生时间的时间戳。

referenced

The issue was referenced from a commit message. The commit_id attribute is the commit SHA1 of where that happened and the commit_repository is where that commit was pushed.

可用性

Issue typeIssue events APITimeline events API
  • 议题
  • 拉取请求
XX

Event object properties

名称类型描述
id整数The unique identifier of the event.
node_id字符串The Global Node ID of the event.
url字符串用于提取事件的 REST API URL。
actor对象The person who generated the event.
event字符串识别所发生事件的实际类型。
commit_id字符串引用此议题的提交的 SHA。
commit_url字符串指向引用此议题的提交的 GitHub REST API 链接。
created_at字符串指示事件发生时间的时间戳。

removed_from_project

The issue or pull request was removed from a project board. 仅当在仓库启用了项目板时,您才会在响应中看到此事件。

可用性

Issue typeIssue events APITimeline events API
  • 议题
  • 拉取请求
XX

Event object properties

注:项目卡详细信息现在显示在项目相关议题和时间线事件的 REST API 响应中。 此功能现在可供开发者预览。 有关详细信息,请参阅博客文章

要接收 project_card 属性,必须为仓库启用项目板,并且必须在 Accept 标头中提供自定义媒体类型

application/vnd.github.starfox-preview+json

警告: 在预览期间,API 可能会更改,恕不另行通知。 预览功能不支持用于生产。 如果遇到任何问题,请联系 your site administrator。

名称类型描述
id整数The unique identifier of the event.
node_id字符串The Global Node ID of the event.
url字符串用于提取事件的 REST API URL。
actor对象The person who generated the event.
event字符串识别所发生事件的实际类型。
commit_id字符串引用此议题的提交的 SHA。
commit_url字符串指向引用此议题的提交的 GitHub REST API 链接。
created_at字符串指示事件发生时间的时间戳。
project_cardobject项目卡对象。 project_id

renamed

The issue or pull request title was changed.

可用性

Issue typeIssue events APITimeline events API
  • 议题
  • 拉取请求
XX

Event object properties

名称类型描述
id整数The unique identifier of the event.
node_id字符串The Global Node ID of the event.
url字符串用于提取事件的 REST API URL。
actor对象The person who generated the event.
event字符串识别所发生事件的实际类型。
commit_id字符串引用此议题的提交的 SHA。
commit_url字符串指向引用此议题的提交的 GitHub REST API 链接。
created_at字符串指示事件发生时间的时间戳。
renameobjectThe name details. rename[from]

reopened

The issue or pull request was reopened.

可用性

Issue typeIssue events APITimeline events API
  • 议题
  • 拉取请求
XX

Event object properties

名称类型描述
id整数The unique identifier of the event.
node_id字符串The Global Node ID of the event.
url字符串用于提取事件的 REST API URL。
actor对象The person who generated the event.
event字符串识别所发生事件的实际类型。
commit_id字符串引用此议题的提交的 SHA。
commit_url字符串指向引用此议题的提交的 GitHub REST API 链接。
created_at字符串指示事件发生时间的时间戳。

review_dismissed

The pull request review was dismissed.

可用性

Issue typeIssue events APITimeline events API
  • 拉取请求
XX

Event object properties

名称类型描述
id整数The unique identifier of the event.
node_id字符串The Global Node ID of the event.
url字符串用于提取事件的 REST API URL。
actor对象The person who generated the event.
event字符串识别所发生事件的实际类型。
commit_id字符串引用此议题的提交的 SHA。
commit_url字符串指向引用此议题的提交的 GitHub REST API 链接。
created_at字符串指示事件发生时间的时间戳。
dismissed_reviewobject被驳回审查的信息。 dismissed_review[state]

review_requested

A pull request review was requested.

可用性

Issue typeIssue events APITimeline events API
  • 拉取请求
XX

Event object properties

名称类型描述
id整数The unique identifier of the event.
node_id字符串The Global Node ID of the event.
url字符串用于提取事件的 REST API URL。
actor对象The person who generated the event.
event字符串识别所发生事件的实际类型。
commit_id字符串引用此议题的提交的 SHA。
commit_url字符串指向引用此议题的提交的 GitHub REST API 链接。
created_at字符串指示事件发生时间的时间戳。
requested_reviewerobject请求审查拉取请求的人。 review_requester

review_request_removed

A pull request review request was removed.

可用性

Issue typeIssue events APITimeline events API
  • 拉取请求
XX

Event object properties

名称类型描述
id整数The unique identifier of the event.
node_id字符串The Global Node ID of the event.
url字符串用于提取事件的 REST API URL。
actor对象The person who generated the event.
event字符串识别所发生事件的实际类型。
commit_id字符串引用此议题的提交的 SHA。
commit_url字符串指向引用此议题的提交的 GitHub REST API 链接。
created_at字符串指示事件发生时间的时间戳。
requested_reviewerobject请求审查拉取请求的人。 review_requester

reviewed

The pull request was reviewed.

可用性

Issue typeIssue events APITimeline events API
  • 拉取请求
X

Event object properties

此事件属性不使用与议题事件对象通用属性相同的结构。 此事件返回以下属性。

名称类型描述
id整数The unique identifier of the event.
node_id字符串The Global Node ID of the event.
用户对象The person who commented on the issue.
正文字符串The review summary text.
commit_id字符串The SHA of the latest commit in the pull request at the time of the review.
submitted_at字符串The timestamp indicating when the review was submitted.
state字符串The state of the submitted review. Can be one of: commented, changes_requested, or approved.
html_url字符串The HTML URL of the review.
pull_request_url字符串The REST API URL to retrieve the pull request.
author_association字符串The permissions the user has in the issue's repository. For example, the value would be "OWNER" if the owner of repository created a comment.
_links对象The html_url and pull_request_url.
event字符串The event value is "reviewed".

subscribed

Someone subscribed to receive notifications for an issue or pull request.

可用性

Issue typeIssue events APITimeline events API
  • 议题
  • 拉取请求
XX

Event object properties

名称类型描述
id整数The unique identifier of the event.
node_id字符串The Global Node ID of the event.
url字符串用于提取事件的 REST API URL。
actor对象The person who generated the event.
event字符串识别所发生事件的实际类型。
commit_id字符串引用此议题的提交的 SHA。
commit_url字符串指向引用此议题的提交的 GitHub REST API 链接。
created_at字符串指示事件发生时间的时间戳。

transferred

The issue was transferred to another repository.

可用性

Issue typeIssue events APITimeline events API
  • 议题
XX

Event object properties

名称类型描述
id整数The unique identifier of the event.
node_id字符串The Global Node ID of the event.
url字符串用于提取事件的 REST API URL。
actor对象The person who generated the event.
event字符串识别所发生事件的实际类型。
commit_id字符串引用此议题的提交的 SHA。
commit_url字符串指向引用此议题的提交的 GitHub REST API 链接。
created_at字符串指示事件发生时间的时间戳。

unassigned

A user was unassigned from the issue.

可用性

Issue typeIssue events APITimeline events API
  • 议题
  • 拉取请求
XX

Event object properties

名称类型描述
id整数The unique identifier of the event.
node_id字符串The Global Node ID of the event.
url字符串用于提取事件的 REST API URL。
actor对象The person who generated the event.
event字符串识别所发生事件的实际类型。
commit_id字符串引用此议题的提交的 SHA。
commit_url字符串指向引用此议题的提交的 GitHub REST API 链接。
created_at字符串指示事件发生时间的时间戳。
assigneeobject从此议题取消分配的人。 assigner

unlabeled

A label was removed from the issue.

可用性

Issue typeIssue events APITimeline events API
  • 议题
  • 拉取请求
XX

Event object properties

名称类型描述
id整数The unique identifier of the event.
node_id字符串The Global Node ID of the event.
url字符串用于提取事件的 REST API URL。
actor对象The person who generated the event.
event字符串识别所发生事件的实际类型。
commit_id字符串引用此议题的提交的 SHA。
commit_url字符串指向引用此议题的提交的 GitHub REST API 链接。
created_at字符串指示事件发生时间的时间戳。
labelobject从议题删除的标签 label[name]

unlocked

The issue was unlocked.

可用性

Issue typeIssue events APITimeline events API
  • 议题
  • 拉取请求
XX

Event object properties

注:您现在可以使用 REST API 在锁定议题时添加原因,并且在包含议题或拉取请求的响应中会看到锁定原因。 在 locked 事件中也会看到锁定原因。 此功能目前可供开发者预览。 有关完整详情,请参阅博客文章。 要访问此功能,必须在 Accept 标头中提供自定义媒体类型

application/vnd.github.sailor-v-preview+json

警告: 在预览期间,API 可能会更改,恕不另行通知。 预览功能不支持用于生产。 如果遇到任何问题,请联系 your site administrator。

名称类型描述
id整数The unique identifier of the event.
node_id字符串The Global Node ID of the event.
url字符串用于提取事件的 REST API URL。
actor对象The person who generated the event.
event字符串识别所发生事件的实际类型。
commit_id字符串引用此议题的提交的 SHA。
commit_url字符串指向引用此议题的提交的 GitHub REST API 链接。
created_at字符串指示事件发生时间的时间戳。
lock_reasonstringThe reason an issue or pull request conversation was locked, if one was provided.

unmarked_as_duplicate

An issue that a user had previously marked as a duplicate of another issue is no longer considered a duplicate, or a pull request that a user had previously marked as a duplicate of another pull request is no longer considered a duplicate.

可用性

Issue typeIssue events APITimeline events API
  • 议题
  • 拉取请求
XX

Event object properties

名称类型描述
id整数The unique identifier of the event.
node_id字符串The Global Node ID of the event.
url字符串用于提取事件的 REST API URL。
actor对象The person who generated the event.
event字符串识别所发生事件的实际类型。
commit_id字符串引用此议题的提交的 SHA。
commit_url字符串指向引用此议题的提交的 GitHub REST API 链接。
created_at字符串指示事件发生时间的时间戳。

unpinned

The issue was unpinned.

可用性

Issue typeIssue events APITimeline events API
  • 议题
XX

Event object properties

名称类型描述
id整数The unique identifier of the event.
node_id字符串The Global Node ID of the event.
url字符串用于提取事件的 REST API URL。
actor对象The person who generated the event.
event字符串识别所发生事件的实际类型。
commit_id字符串引用此议题的提交的 SHA。
commit_url字符串指向引用此议题的提交的 GitHub REST API 链接。
created_at字符串指示事件发生时间的时间戳。

已取消订阅

Someone unsubscribed from receiving notifications for an issue or pull request.

可用性

Issue typeIssue events APITimeline events API
  • 议题
  • 拉取请求
X

Event object properties

名称类型描述
id整数The unique identifier of the event.
node_id字符串The Global Node ID of the event.
url字符串用于提取事件的 REST API URL。
actor对象The person who generated the event.
event字符串识别所发生事件的实际类型。
commit_id字符串引用此议题的提交的 SHA。
commit_url字符串指向引用此议题的提交的 GitHub REST API 链接。
created_at字符串指示事件发生时间的时间戳。