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 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 | 字符串 | 指示事件发生时间的时间戳。 |
The issue or pull request was added to a project board. 仅当在仓库启用了项目板时,您才会在响应中看到此事件。
Issue type | Issue events API | Timeline events API |
---|
| X | X |
注:项目卡详细信息现在显示在项目相关议题和时间线事件的 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_card | object | 项目卡对象。 project_id |
The issue or pull request was assigned to a user.
Issue type | Issue events API | Timeline events API |
---|
| X | X |
名称 | 类型 | 描述 |
---|
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 | 字符串 | 指示事件发生时间的时间戳。 |
assignee | object | 从此议题取消分配的人。 assigner |
GitHub unsuccessfully attempted to automatically change the base branch of the pull request.
Issue type | Issue events API | Timeline events API |
---|
| X | |
名称 | 类型 | 描述 |
---|
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 | 字符串 | 指示事件发生时间的时间戳。 |
GitHub successfully attempted to automatically change the base branch of the pull request.
Issue type | Issue events API | Timeline events API |
---|
| X | |
名称 | 类型 | 描述 |
---|
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 | 字符串 | 指示事件发生时间的时间戳。 |
The base reference branch of the pull request changed.
Issue type | Issue events API | Timeline events API |
---|
| X | |
名称 | 类型 | 描述 |
---|
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 | 字符串 | 指示事件发生时间的时间戳。 |
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 type | Issue events API | Timeline events API |
---|
| X | X |
名称 | 类型 | 描述 |
---|
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 type | Issue events API | Timeline events API |
---|
| | X |
此事件属性不使用与议题事件对象通用属性相同的结构。 此事件返回以下属性。
名称 | 类型 | 描述 |
---|
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. |
A commit was added to the pull request's HEAD
branch.
Issue type | Issue events API | Timeline events API |
---|
| | X |
此事件属性不使用与议题事件对象通用属性相同的结构。 此事件返回以下属性。
名称 | 类型 | 描述 |
---|
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 objects | A 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" . |
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 type | Issue events API | Timeline events API |
---|
| X | X |
名称 | 类型 | 描述 |
---|
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 | 字符串 | 指示事件发生时间的时间戳。 |
The pull request was converted to draft mode.
Issue type | Issue events API | Timeline events API |
---|
| X | X |
名称 | 类型 | 描述 |
---|
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 | 字符串 | 指示事件发生时间的时间戳。 |
The issue was created by converting a note in a project board to an issue. 仅当在仓库启用了项目板时,您才会在响应中看到此事件。
Issue type | Issue events API | Timeline events API |
---|
| X | X |
注:项目卡详细信息现在显示在项目相关议题和时间线事件的 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_card | object | 项目卡对象。 project_id |
The issue or pull request was referenced from another issue or pull request.
Issue type | Issue events API | Timeline events API |
---|
| | X |
此事件属性不使用与议题事件对象通用属性相同的结构。 此事件返回以下属性。
名称 | 类型 | 描述 |
---|
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" . |
The issue or pull request was removed from a milestone.
Issue type | Issue events API | Timeline events API |
---|
| X | X |
名称 | 类型 | 描述 |
---|
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 | 字符串 | 指示事件发生时间的时间戳。 |
milestone | object | The milestone object. milestone[title] |
The pull request was deployed.
Issue type | Issue events API | Timeline events API |
---|
| X | X |
名称 | 类型 | 描述 |
---|
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 | 字符串 | 指示事件发生时间的时间戳。 |
The pull request deployment environment was changed.
Issue type | Issue events API | Timeline events API |
---|
| X | |
名称 | 类型 | 描述 |
---|
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 | 字符串 | 指示事件发生时间的时间戳。 |
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 type | Issue events API | Timeline events API |
---|
| X | X |
名称 | 类型 | 描述 |
---|
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 | 字符串 | 指示事件发生时间的时间戳。 |
The pull request's HEAD
branch was deleted.
Issue type | Issue events API | Timeline events API |
---|
| X | X |
名称 | 类型 | 描述 |
---|
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 | 字符串 | 指示事件发生时间的时间戳。 |
The pull request's HEAD
branch was restored to the last known commit.
Issue type | Issue events API | Timeline events API |
---|
| X | X |
名称 | 类型 | 描述 |
---|
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 label was added to the issue or pull request.
Issue type | Issue events API | Timeline events API |
---|
| X | X |
名称 | 类型 | 描述 |
---|
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 | 字符串 | 指示事件发生时间的时间戳。 |
label | object | 从议题删除的标签 label[name] |
The issue or pull request was locked.
Issue type | Issue events API | Timeline events API |
---|
| X | X |
注:您现在可以使用 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_reason | string | The 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 type | Issue events API | Timeline events API |
---|
| X | X |
名称 | 类型 | 描述 |
---|
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 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 type | Issue events API | Timeline events API |
---|
| X | X |
名称 | 类型 | 描述 |
---|
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 | 字符串 | 指示事件发生时间的时间戳。 |
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 type | Issue events API | Timeline events API |
---|
| X | |
名称 | 类型 | 描述 |
---|
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 | 字符串 | 指示事件发生时间的时间戳。 |
The issue or pull request was added to a milestone.
Issue type | Issue events API | Timeline events API |
---|
| X | X |
名称 | 类型 | 描述 |
---|
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 | 字符串 | 指示事件发生时间的时间戳。 |
milestone | object | The milestone object. milestone[title] |
The issue or pull request was moved between columns in a project board. 仅当在仓库启用了项目板时,您才会在响应中看到此事件。
Issue type | Issue events API | Timeline events API |
---|
| X | X |
注:项目卡详细信息现在显示在项目相关议题和时间线事件的 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_card | object | 项目卡对象。 project_id |
previous_column_name | string | The name of the column the issue was moved from. |
The issue was pinned.
Issue type | Issue events API | Timeline events API |
---|
| X | X |
名称 | 类型 | 描述 |
---|
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 pull request was created that is not in draft mode.
Issue type | Issue events API | Timeline events API |
---|
| X | X |
名称 | 类型 | 描述 |
---|
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 | 字符串 | 指示事件发生时间的时间戳。 |
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 type | Issue events API | Timeline events API |
---|
| X | X |
名称 | 类型 | 描述 |
---|
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 | 字符串 | 指示事件发生时间的时间戳。 |
The issue or pull request was removed from a project board. 仅当在仓库启用了项目板时,您才会在响应中看到此事件。
Issue type | Issue events API | Timeline events API |
---|
| X | X |
注:项目卡详细信息现在显示在项目相关议题和时间线事件的 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_card | object | 项目卡对象。 project_id |
The issue or pull request title was changed.
Issue type | Issue events API | Timeline events API |
---|
| X | X |
名称 | 类型 | 描述 |
---|
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 | 字符串 | 指示事件发生时间的时间戳。 |
rename | object | The name details. rename[from] |
The issue or pull request was reopened.
Issue type | Issue events API | Timeline events API |
---|
| X | X |
名称 | 类型 | 描述 |
---|
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 | 字符串 | 指示事件发生时间的时间戳。 |
The pull request review was dismissed.
Issue type | Issue events API | Timeline events API |
---|
| X | X |
名称 | 类型 | 描述 |
---|
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_review | object | 被驳回审查的信息。 dismissed_review[state] |
A pull request review was requested.
Issue type | Issue events API | Timeline events API |
---|
| X | X |
名称 | 类型 | 描述 |
---|
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_reviewer | object | 请求审查拉取请求的人。 review_requester |
A pull request review request was removed.
Issue type | Issue events API | Timeline events API |
---|
| X | X |
名称 | 类型 | 描述 |
---|
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_reviewer | object | 请求审查拉取请求的人。 review_requester |
The pull request was reviewed.
Issue type | Issue events API | Timeline events API |
---|
| | X |
此事件属性不使用与议题事件对象通用属性相同的结构。 此事件返回以下属性。
名称 | 类型 | 描述 |
---|
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" . |
Someone subscribed to receive notifications for an issue or pull request.
Issue type | Issue events API | Timeline events API |
---|
| X | X |
名称 | 类型 | 描述 |
---|
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 | 字符串 | 指示事件发生时间的时间戳。 |
The issue was transferred to another repository.
Issue type | Issue events API | Timeline events API |
---|
| X | X |
名称 | 类型 | 描述 |
---|
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 user was unassigned from the issue.
Issue type | Issue events API | Timeline events API |
---|
| X | X |
名称 | 类型 | 描述 |
---|
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 | 字符串 | 指示事件发生时间的时间戳。 |
assignee | object | 从此议题取消分配的人。 assigner |
A label was removed from the issue.
Issue type | Issue events API | Timeline events API |
---|
| X | X |
名称 | 类型 | 描述 |
---|
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 | 字符串 | 指示事件发生时间的时间戳。 |
label | object | 从议题删除的标签 label[name] |
The issue was unlocked.
Issue type | Issue events API | Timeline events API |
---|
| X | X |
注:您现在可以使用 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_reason | string | The reason an issue or pull request conversation was locked, if one was provided. |
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 type | Issue events API | Timeline events API |
---|
| X | X |
名称 | 类型 | 描述 |
---|
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 | 字符串 | 指示事件发生时间的时间戳。 |
The issue was unpinned.
Issue type | Issue events API | Timeline events API |
---|
| X | X |
名称 | 类型 | 描述 |
---|
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 type | Issue events API | Timeline events API |
---|
| | X |
名称 | 类型 | 描述 |
---|
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 | 字符串 | 指示事件发生时间的时间戳。 |