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

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

文章版本: Enterprise Server 2.18

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字符串The REST API URL for fetching the event.
actor对象The person who generated the event.
event字符串Identifies the actual type of event that occurred.
commit_id字符串The SHA of the commit that referenced this issue.
commit_url字符串The GitHub REST API link to the commit that referenced this issue.
created_at字符串The timestamp indicating when the event occurred.

added_to_project

The issue or pull request was added to a project board. You only see this event in responses when project boards have been enabled in the repository.

可用性

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

Event object properties

Note: Project card details are now shown in REST API responses for project-related issue and timeline events. This feature is now available for developers to preview. For details, see the blog post.

To receive the project_card attribute, project boards must be enabled for a repository, and you must provide a custom media type in the Accept header:

application/vnd.github.starfox-preview+json

Warning: The API may change without advance notice during the preview period. Preview features are not supported for production use. If you experience any issues, contact 您的 GitHub Enterprise 站点管理员.

名称类型描述
id整数The unique identifier of the event.
node_id字符串The Global Node ID of the event.
url字符串The REST API URL for fetching the event.
actor对象The person who generated the event.
event字符串Identifies the actual type of event that occurred.
commit_id字符串The SHA of the commit that referenced this issue.
commit_url字符串The GitHub REST API link to the commit that referenced this issue.
created_at字符串The timestamp indicating when the event occurred.
project_cardobjectThe project card object. project_id

assigned

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字符串The REST API URL for fetching the event.
actor对象The person who generated the event.
event字符串Identifies the actual type of event that occurred.
commit_id字符串The SHA of the commit that referenced this issue.
commit_url字符串The GitHub REST API link to the commit that referenced this issue.
created_at字符串The timestamp indicating when the event occurred.
assigneeobjectThe person unassigned from this issue. 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字符串The REST API URL for fetching the event.
actor对象The person who generated the event.
event字符串Identifies the actual type of event that occurred.
commit_id字符串The SHA of the commit that referenced this issue.
commit_url字符串The GitHub REST API link to the commit that referenced this issue.
created_at字符串The timestamp indicating when the event occurred.

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字符串The REST API URL for fetching the event.
actor对象The person who generated the event.
event字符串Identifies the actual type of event that occurred.
commit_id字符串The SHA of the commit that referenced this issue.
commit_url字符串The GitHub REST API link to the commit that referenced this issue.
created_at字符串The timestamp indicating when the event occurred.

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字符串The REST API URL for fetching the event.
actor对象The person who generated the event.
event字符串Identifies the actual type of event that occurred.
commit_id字符串The SHA of the commit that referenced this issue.
commit_url字符串The GitHub REST API link to the commit that referenced this issue.
created_at字符串The timestamp indicating when the event occurred.

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字符串The REST API URL for fetching the event.
actor对象The person who generated the event.
event字符串Identifies the actual type of event that occurred.
commit_id字符串The SHA of the commit that referenced this issue.
commit_url字符串The GitHub REST API link to the commit that referenced this issue.
created_at字符串The timestamp indicating when the event occurred.

commented

A comment was added to the issue or pull request.

可用性

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

Event object properties

This events properties do not use the same structure as the issue event object common properties. The following properties are returned for this event.

名称类型描述
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

This events properties do not use the same structure as the issue event object common properties. The following properties are returned for this event.

名称类型描述
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字符串提交消息.
parentsarray 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字符串The REST API URL for fetching the event.
actor对象The person who generated the event.
event字符串Identifies the actual type of event that occurred.
commit_id字符串The SHA of the commit that referenced this issue.
commit_url字符串The GitHub REST API link to the commit that referenced this issue.
created_at字符串The timestamp indicating when the event occurred.

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字符串The REST API URL for fetching the event.
actor对象The person who generated the event.
event字符串Identifies the actual type of event that occurred.
commit_id字符串The SHA of the commit that referenced this issue.
commit_url字符串The GitHub REST API link to the commit that referenced this issue.
created_at字符串The timestamp indicating when the event occurred.

converted_note_to_issue

The issue was created by converting a note in a project board to an issue. You only see this event in responses when project boards have been enabled in the repository.

可用性

Issue typeIssue events APITimeline events API
  • 议题
XX

Event object properties

Note: Project card details are now shown in REST API responses for project-related issue and timeline events. This feature is now available for developers to preview. For details, see the blog post.

To receive the project_card attribute, project boards must be enabled for a repository, and you must provide a custom media type in the Accept header:

application/vnd.github.starfox-preview+json

Warning: The API may change without advance notice during the preview period. Preview features are not supported for production use. If you experience any issues, contact 您的 GitHub Enterprise 站点管理员.

名称类型描述
id整数The unique identifier of the event.
node_id字符串The Global Node ID of the event.
url字符串The REST API URL for fetching the event.
actor对象The person who generated the event.
event字符串Identifies the actual type of event that occurred.
commit_id字符串The SHA of the commit that referenced this issue.
commit_url字符串The GitHub REST API link to the commit that referenced this issue.
created_at字符串The timestamp indicating when the event occurred.
project_cardobjectThe project card object. 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

This events properties do not use the same structure as the issue event object common properties. The following properties are returned for this event.

名称类型描述
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-refererence 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字符串The REST API URL for fetching the event.
actor对象The person who generated the event.
event字符串Identifies the actual type of event that occurred.
commit_id字符串The SHA of the commit that referenced this issue.
commit_url字符串The GitHub REST API link to the commit that referenced this issue.
created_at字符串The timestamp indicating when the event occurred.
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字符串The REST API URL for fetching the event.
actor对象The person who generated the event.
event字符串Identifies the actual type of event that occurred.
commit_id字符串The SHA of the commit that referenced this issue.
commit_url字符串The GitHub REST API link to the commit that referenced this issue.
created_at字符串The timestamp indicating when the event occurred.

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字符串The REST API URL for fetching the event.
actor对象The person who generated the event.
event字符串Identifies the actual type of event that occurred.
commit_id字符串The SHA of the commit that referenced this issue.
commit_url字符串The GitHub REST API link to the commit that referenced this issue.
created_at字符串The timestamp indicating when the event occurred.

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字符串The REST API URL for fetching the event.
actor对象The person who generated the event.
event字符串Identifies the actual type of event that occurred.
commit_id字符串The SHA of the commit that referenced this issue.
commit_url字符串The GitHub REST API link to the commit that referenced this issue.
created_at字符串The timestamp indicating when the event occurred.

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字符串The REST API URL for fetching the event.
actor对象The person who generated the event.
event字符串Identifies the actual type of event that occurred.
commit_id字符串The SHA of the commit that referenced this issue.
commit_url字符串The GitHub REST API link to the commit that referenced this issue.
created_at字符串The timestamp indicating when the event occurred.

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字符串The REST API URL for fetching the event.
actor对象The person who generated the event.
event字符串Identifies the actual type of event that occurred.
commit_id字符串The SHA of the commit that referenced this issue.
commit_url字符串The GitHub REST API link to the commit that referenced this issue.
created_at字符串The timestamp indicating when the event occurred.

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字符串The REST API URL for fetching the event.
actor对象The person who generated the event.
event字符串Identifies the actual type of event that occurred.
commit_id字符串The SHA of the commit that referenced this issue.
commit_url字符串The GitHub REST API link to the commit that referenced this issue.
created_at字符串The timestamp indicating when the event occurred.
labelobjectThe label removed from the issue label[name]

locked

The issue or pull request was locked.

可用性

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

Event object properties

Note: You can now use the REST API to add a reason when you lock an issue, and you will see lock reasons in responses that include issues or pull requests. You will also see lock reasons in locked events. This feature is currently available for developers to preview. See the blog post for full details. To access this feature, you must provide a custom media type in the Accept header:

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

Warning: The API may change without advance notice during the preview period. Preview features are not supported for production use. If you experience any issues, contact 您的 GitHub Enterprise 站点管理员.

名称类型描述
id整数The unique identifier of the event.
node_id字符串The Global Node ID of the event.
url字符串The REST API URL for fetching the event.
actor对象The person who generated the event.
event字符串Identifies the actual type of event that occurred.
commit_id字符串The SHA of the commit that referenced this issue.
commit_url字符串The GitHub REST API link to the commit that referenced this issue.
created_at字符串The timestamp indicating when the event occurred.
lock_reasonstringThe reason an issue or pull request conversation was locked, if one was provided.

mentioned

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字符串The REST API URL for fetching the event.
actor对象The person who generated the event.
event字符串Identifies the actual type of event that occurred.
commit_id字符串The SHA of the commit that referenced this issue.
commit_url字符串The GitHub REST API link to the commit that referenced this issue.
created_at字符串The timestamp indicating when the event occurred.

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字符串The REST API URL for fetching the event.
actor对象The person who generated the event.
event字符串Identifies the actual type of event that occurred.
commit_id字符串The SHA of the commit that referenced this issue.
commit_url字符串The GitHub REST API link to the commit that referenced this issue.
created_at字符串The timestamp indicating when the event occurred.

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字符串The REST API URL for fetching the event.
actor对象The person who generated the event.
event字符串Identifies the actual type of event that occurred.
commit_id字符串The SHA of the commit that referenced this issue.
commit_url字符串The GitHub REST API link to the commit that referenced this issue.
created_at字符串The timestamp indicating when the event occurred.

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字符串The REST API URL for fetching the event.
actor对象The person who generated the event.
event字符串Identifies the actual type of event that occurred.
commit_id字符串The SHA of the commit that referenced this issue.
commit_url字符串The GitHub REST API link to the commit that referenced this issue.
created_at字符串The timestamp indicating when the event occurred.
milestoneobjectThe milestone object. milestone[title]

moved_columns_in_project

The issue or pull request was moved between columns in a project board. You only see this event in responses when project boards have been enabled in the repository.

可用性

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

Event object properties

Note: Project card details are now shown in REST API responses for project-related issue and timeline events. This feature is now available for developers to preview. For details, see the blog post.

To receive the project_card attribute, project boards must be enabled for a repository, and you must provide a custom media type in the Accept header:

application/vnd.github.starfox-preview+json

Warning: The API may change without advance notice during the preview period. Preview features are not supported for production use. If you experience any issues, contact 您的 GitHub Enterprise 站点管理员.

名称类型描述
id整数The unique identifier of the event.
node_id字符串The Global Node ID of the event.
url字符串The REST API URL for fetching the event.
actor对象The person who generated the event.
event字符串Identifies the actual type of event that occurred.
commit_id字符串The SHA of the commit that referenced this issue.
commit_url字符串The GitHub REST API link to the commit that referenced this issue.
created_at字符串The timestamp indicating when the event occurred.
project_cardobjectThe project card object. project_id
previous_column_namestringThe name of the column the issue was moved from.

pinned

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字符串The REST API URL for fetching the event.
actor对象The person who generated the event.
event字符串Identifies the actual type of event that occurred.
commit_id字符串The SHA of the commit that referenced this issue.
commit_url字符串The GitHub REST API link to the commit that referenced this issue.
created_at字符串The timestamp indicating when the event occurred.

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字符串The REST API URL for fetching the event.
actor对象The person who generated the event.
event字符串Identifies the actual type of event that occurred.
commit_id字符串The SHA of the commit that referenced this issue.
commit_url字符串The GitHub REST API link to the commit that referenced this issue.
created_at字符串The timestamp indicating when the event occurred.

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字符串The REST API URL for fetching the event.
actor对象The person who generated the event.
event字符串Identifies the actual type of event that occurred.
commit_id字符串The SHA of the commit that referenced this issue.
commit_url字符串The GitHub REST API link to the commit that referenced this issue.
created_at字符串The timestamp indicating when the event occurred.

removed_from_project

The issue or pull request was removed from a project board. You only see this event in responses when project boards have been enabled in the repository.

可用性

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

Event object properties

Note: Project card details are now shown in REST API responses for project-related issue and timeline events. This feature is now available for developers to preview. For details, see the blog post.

To receive the project_card attribute, project boards must be enabled for a repository, and you must provide a custom media type in the Accept header:

application/vnd.github.starfox-preview+json

Warning: The API may change without advance notice during the preview period. Preview features are not supported for production use. If you experience any issues, contact 您的 GitHub Enterprise 站点管理员.

名称类型描述
id整数The unique identifier of the event.
node_id字符串The Global Node ID of the event.
url字符串The REST API URL for fetching the event.
actor对象The person who generated the event.
event字符串Identifies the actual type of event that occurred.
commit_id字符串The SHA of the commit that referenced this issue.
commit_url字符串The GitHub REST API link to the commit that referenced this issue.
created_at字符串The timestamp indicating when the event occurred.
project_cardobjectThe project card object. 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字符串The REST API URL for fetching the event.
actor对象The person who generated the event.
event字符串Identifies the actual type of event that occurred.
commit_id字符串The SHA of the commit that referenced this issue.
commit_url字符串The GitHub REST API link to the commit that referenced this issue.
created_at字符串The timestamp indicating when the event occurred.
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字符串The REST API URL for fetching the event.
actor对象The person who generated the event.
event字符串Identifies the actual type of event that occurred.
commit_id字符串The SHA of the commit that referenced this issue.
commit_url字符串The GitHub REST API link to the commit that referenced this issue.
created_at字符串The timestamp indicating when the event occurred.

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字符串The REST API URL for fetching the event.
actor对象The person who generated the event.
event字符串Identifies the actual type of event that occurred.
commit_id字符串The SHA of the commit that referenced this issue.
commit_url字符串The GitHub REST API link to the commit that referenced this issue.
created_at字符串The timestamp indicating when the event occurred.
dismissed_reviewobjectThe information for the dismissed review. 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字符串The REST API URL for fetching the event.
actor对象The person who generated the event.
event字符串Identifies the actual type of event that occurred.
commit_id字符串The SHA of the commit that referenced this issue.
commit_url字符串The GitHub REST API link to the commit that referenced this issue.
created_at字符串The timestamp indicating when the event occurred.
requested_reviewerobjectThe person requested to review the pull request. 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字符串The REST API URL for fetching the event.
actor对象The person who generated the event.
event字符串Identifies the actual type of event that occurred.
commit_id字符串The SHA of the commit that referenced this issue.
commit_url字符串The GitHub REST API link to the commit that referenced this issue.
created_at字符串The timestamp indicating when the event occurred.
requested_reviewerobjectThe person requested to review the pull request. review_requester

reviewed

The pull request was reviewed.

可用性

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

Event object properties

This events properties do not use the same structure as the issue event object common properties. The following properties are returned for this event.

名称类型描述
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字符串The REST API URL for fetching the event.
actor对象The person who generated the event.
event字符串Identifies the actual type of event that occurred.
commit_id字符串The SHA of the commit that referenced this issue.
commit_url字符串The GitHub REST API link to the commit that referenced this issue.
created_at字符串The timestamp indicating when the event occurred.

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字符串The REST API URL for fetching the event.
actor对象The person who generated the event.
event字符串Identifies the actual type of event that occurred.
commit_id字符串The SHA of the commit that referenced this issue.
commit_url字符串The GitHub REST API link to the commit that referenced this issue.
created_at字符串The timestamp indicating when the event occurred.

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字符串The REST API URL for fetching the event.
actor对象The person who generated the event.
event字符串Identifies the actual type of event that occurred.
commit_id字符串The SHA of the commit that referenced this issue.
commit_url字符串The GitHub REST API link to the commit that referenced this issue.
created_at字符串The timestamp indicating when the event occurred.
assigneeobjectThe person unassigned from this issue. 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字符串The REST API URL for fetching the event.
actor对象The person who generated the event.
event字符串Identifies the actual type of event that occurred.
commit_id字符串The SHA of the commit that referenced this issue.
commit_url字符串The GitHub REST API link to the commit that referenced this issue.
created_at字符串The timestamp indicating when the event occurred.
labelobjectThe label removed from the issue label[name]

unlocked

The issue was unlocked.

可用性

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

Event object properties

Note: You can now use the REST API to add a reason when you lock an issue, and you will see lock reasons in responses that include issues or pull requests. You will also see lock reasons in locked events. This feature is currently available for developers to preview. See the blog post for full details. To access this feature, you must provide a custom media type in the Accept header:

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

Warning: The API may change without advance notice during the preview period. Preview features are not supported for production use. If you experience any issues, contact 您的 GitHub Enterprise 站点管理员.

名称类型描述
id整数The unique identifier of the event.
node_id字符串The Global Node ID of the event.
url字符串The REST API URL for fetching the event.
actor对象The person who generated the event.
event字符串Identifies the actual type of event that occurred.
commit_id字符串The SHA of the commit that referenced this issue.
commit_url字符串The GitHub REST API link to the commit that referenced this issue.
created_at字符串The timestamp indicating when the event occurred.
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字符串The REST API URL for fetching the event.
actor对象The person who generated the event.
event字符串Identifies the actual type of event that occurred.
commit_id字符串The SHA of the commit that referenced this issue.
commit_url字符串The GitHub REST API link to the commit that referenced this issue.
created_at字符串The timestamp indicating when the event occurred.

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字符串The REST API URL for fetching the event.
actor对象The person who generated the event.
event字符串Identifies the actual type of event that occurred.
commit_id字符串The SHA of the commit that referenced this issue.
commit_url字符串The GitHub REST API link to the commit that referenced this issue.
created_at字符串The timestamp indicating when the event occurred.

unsubscribed

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字符串The REST API URL for fetching the event.
actor对象The person who generated the event.
event字符串Identifies the actual type of event that occurred.
commit_id字符串The SHA of the commit that referenced this issue.
commit_url字符串The GitHub REST API link to the commit that referenced this issue.
created_at字符串The timestamp indicating when the event occurred.

问问别人

找不到要找的内容?

联系我们