Skip to main content

timeline

Creates, updates, deletes, gets or lists a timeline resource.

Overview

Nametimeline
TypeResource
Idgithub.issues.timeline

Fields

The following fields are returned by SELECT queries:

Response

NameDatatypeDescription
idinteger
commit_idstring
node_idstring
_linksobject
actorobjectA GitHub user. (title: Simple User)
assigneeobjectA GitHub user. (title: Simple User)
authorobjectIdentifying information for the git-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)
bodystringContents of the issue comment (example: What version of Safari were you using when you observed this bug?)
body_htmlstring
body_textstring
commentsarray
commit_urlstring
committerobjectIdentifying information for the git-user
created_atstring
dismissed_reviewobject
eventstring
html_urlstring (uri)
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)
issue_typeobjectThe type of issue. (title: Issue Type)
issue_urlstring (uri)
labelobject
lock_reasonstring (example: "off-topic")
messagestringMessage describing the purpose of the commit (example: Fix #42)
milestoneobject
minimizedobjectDetails about why an issue comment was minimized. (title: Minimized Issue Comment)
parent_issueobjectA minimal reference to an issue linked from a timeline event (e.g. sub-issue, parent-issue, or dependency events). (title: Issue Reference)
parentsarray
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)
pinobjectContext around who pinned an issue comment and when it was pinned. (title: Pinned Issue Comment)
prev_issue_typeobjectThe type of issue. (title: Issue Type)
project_cardobject
pull_request_urlstring (uri) (example: https://api.github.com/repos/octocat/Hello-World/pulls/12)
reactionsobject (title: Reaction Rollup)
renameobject
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)
shastringSHA for the commit (example: 7638417db6d59f3c431d3e1f261cc637155684cd)
sourceobject
statestring (example: CHANGES_REQUESTED)
state_reasonstring
sub_issueobjectA minimal reference to an issue linked from a timeline event (e.g. sub-issue, parent-issue, or dependency events). (title: Issue Reference)
submitted_atstring (date-time)
treeobject
updated_atstring (date-time) (example: 2011-04-14T16:00:49Z)
urlstring
userobjectA GitHub user. (title: Simple User)
verificationobject

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_events_for_timelineselectowner, repo, issue_numberper_page, page, excludeList all timeline events for an issue.

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
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.
excludestringA comma-separated list of timeline event names to exclude from the response.
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

List all timeline events for an issue.

SELECT
id,
commit_id,
node_id,
_links,
actor,
assignee,
author,
author_association,
blocked_by,
blocking,
body,
body_html,
body_text,
comments,
commit_url,
committer,
created_at,
dismissed_review,
event,
html_url,
intent,
issue_type,
issue_url,
label,
lock_reason,
message,
milestone,
minimized,
parent_issue,
parents,
performed_via_github_app,
pin,
prev_issue_type,
project_card,
pull_request_url,
reactions,
rename,
requested_reviewer,
requested_team,
review_requester,
sha,
source,
state,
state_reason,
sub_issue,
submitted_at,
tree,
updated_at,
url,
user,
verification
FROM github.issues.timeline
WHERE owner = '{{ owner }}' -- required
AND repo = '{{ repo }}' -- required
AND issue_number = '{{ issue_number }}' -- required
AND per_page = '{{ per_page }}'
AND page = '{{ page }}'
AND exclude = '{{ exclude }}'
;