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)
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)
issueobjectIssues are a great way to keep track of tasks, enhancements, and bugs for your projects. (title: Issue)
labelobjectIssue Event Label (title: Issue Event Label)
lock_reasonstring
milestoneobjectIssue Event Milestone (title: Issue Event Milestone)
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)
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)
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,
commit_url,
created_at,
dismissed_review,
event,
issue,
label,
lock_reason,
milestone,
performed_via_github_app,
project_card,
rename,
requested_reviewer,
requested_team,
review_requester,
url
FROM github.issues.events
WHERE owner = '{{ owner }}' -- required
AND repo = '{{ repo }}' -- required
AND event_id = '{{ event_id }}' -- required
;