Skip to main content

events

Creates, updates, deletes, gets or lists an events resource.

Overview

Nameevents
TypeResource
Idgithub.issues.events

Fields

The following fields are returned by SELECT queries:

Response

NameDatatypeDescription
idinteger (int64)
commit_idstring (example: 6dcb09b5b57875f334f61aebed695e2e4193db5e)
node_idstring (example: MDEwOklzc3VlRXZlbnQx)
actorobjectA GitHub user. (title: Simple User)
assigneeobjectA GitHub user. (title: Simple User)
assignerobjectA GitHub user. (title: Simple User)
author_associationstringHow the author is associated with the repository. (COLLABORATOR, CONTRIBUTOR, FIRST_TIMER, FIRST_TIME_CONTRIBUTOR, MANNEQUIN, MEMBER, NONE, OWNER) (title: author_association, example: OWNER)
blocked_byobjectA minimal reference to an issue linked from a timeline event (e.g. sub-issue, parent-issue, or dependency events). (title: Issue Reference)
blockingobjectA minimal reference to an issue linked from a timeline event (e.g. sub-issue, parent-issue, or dependency events). (title: Issue Reference)
commit_urlstring (example: https://api.github.com/repos/octocat/Hello-World/commits/6dcb09b5b57875f334f61aebed695e2e4193db5e)
created_atstring (date-time) (example: 2011-04-14T16:00:49Z)
dismissed_reviewobject (title: Issue Event Dismissed Review)
eventstring (example: closed)
intentobjectThe intent behind an agent's action on an issue, including the rationale and confidence. Present (and null when the event carried no agent intent) on supported event types while the issue suggestions feature is enabled for the repository; the property is omitted entirely when the feature is disabled or the event type does not support intent. (title: Issue Event Intent)
issueobjectIssues are a great way to keep track of tasks, enhancements, and bugs for your projects. (title: Issue)
issue_typeobjectThe type of issue. (title: Issue Type)
labelobjectIssue Event Label (title: Issue Event Label)
lock_reasonstring
milestoneobjectIssue Event Milestone (title: Issue Event Milestone)
parent_issueobjectA minimal reference to an issue linked from a timeline event (e.g. sub-issue, parent-issue, or dependency events). (title: Issue Reference)
performed_via_github_appobjectGitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub. (title: GitHub app)
prev_issue_typeobjectThe type of issue. (title: Issue Type)
project_cardobjectIssue Event Project Card (title: Issue Event Project Card)
renameobjectIssue Event Rename (title: Issue Event Rename)
requested_reviewerobjectA GitHub user. (title: Simple User)
requested_teamobjectGroups of organization members that gives permissions on specified repositories. (title: Team)
review_requesterobjectA GitHub user. (title: Simple User)
sub_issueobjectA minimal reference to an issue linked from a timeline event (e.g. sub-issue, parent-issue, or dependency events). (title: Issue Reference)
urlstring (uri) (example: https://api.github.com/repos/octocat/Hello-World/issues/events/1)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_eventselectowner, repo, event_idGets a single event by the event id.
list_eventsselectowner, repo, issue_numberper_page, pageLists all events for an issue.
list_events_for_reposelectowner, repoper_page, pageLists events for a repository.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
event_idinteger
issue_numberintegerThe number that identifies the issue.
ownerstringThe account owner of the repository. The name is not case sensitive.
repostringThe name of the repository without the .git extension. The name is not case sensitive.
pageintegerThe page number of the results to fetch. For more information, see "Using pagination in the REST API."
per_pageintegerThe number of results per page (max 100). For more information, see "Using pagination in the REST API."

SELECT examples

Gets a single event by the event id.

SELECT
id,
commit_id,
node_id,
actor,
assignee,
assigner,
author_association,
blocked_by,
blocking,
commit_url,
created_at,
dismissed_review,
event,
intent,
issue,
issue_type,
label,
lock_reason,
milestone,
parent_issue,
performed_via_github_app,
prev_issue_type,
project_card,
rename,
requested_reviewer,
requested_team,
review_requester,
sub_issue,
url
FROM github.issues.events
WHERE owner = '{{ owner }}' -- required
AND repo = '{{ repo }}' -- required
AND event_id = '{{ event_id }}' -- required
;