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)
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)
issue_urlstring (uri)
labelobject
lock_reasonstring (example: "off-topic")
messagestringMessage describing the purpose of the commit (example: Fix #42)
milestoneobject
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)
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
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, pageList 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.
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,
body,
body_html,
body_text,
comments,
commit_url,
committer,
created_at,
dismissed_review,
event,
html_url,
issue_url,
label,
lock_reason,
message,
milestone,
parents,
performed_via_github_app,
pin,
project_card,
pull_request_url,
reactions,
rename,
requested_reviewer,
requested_team,
review_requester,
sha,
source,
state,
state_reason,
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 }}'
;