timeline
Creates, updates, deletes, gets or lists a timeline resource.
Overview
| Name | timeline |
| Type | Resource |
| Id | github.issues.timeline |
Fields
The following fields are returned by SELECT queries:
- list_events_for_timeline
Response
| Name | Datatype | Description |
|---|---|---|
id | integer | |
commit_id | string | |
node_id | string | |
_links | object | |
actor | object | A GitHub user. (title: Simple User) |
assignee | object | A GitHub user. (title: Simple User) |
author | object | Identifying information for the git-user |
author_association | string | How the author is associated with the repository. (COLLABORATOR, CONTRIBUTOR, FIRST_TIMER, FIRST_TIME_CONTRIBUTOR, MANNEQUIN, MEMBER, NONE, OWNER) (title: author_association, example: OWNER) |
body | string | Contents of the issue comment (example: What version of Safari were you using when you observed this bug?) |
body_html | string | |
body_text | string | |
comments | array | |
commit_url | string | |
committer | object | Identifying information for the git-user |
created_at | string | |
dismissed_review | object | |
event | string | |
html_url | string (uri) | |
issue_url | string (uri) | |
label | object | |
lock_reason | string | (example: "off-topic") |
message | string | Message describing the purpose of the commit (example: Fix #42) |
milestone | object | |
parents | array | |
performed_via_github_app | object | GitHub 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) |
pin | object | Context around who pinned an issue comment and when it was pinned. (title: Pinned Issue Comment) |
project_card | object | |
pull_request_url | string (uri) | (example: https://api.github.com/repos/octocat/Hello-World/pulls/12) |
reactions | object | (title: Reaction Rollup) |
rename | object | |
requested_reviewer | object | A GitHub user. (title: Simple User) |
requested_team | object | Groups of organization members that gives permissions on specified repositories. (title: Team) |
review_requester | object | A GitHub user. (title: Simple User) |
sha | string | SHA for the commit (example: 7638417db6d59f3c431d3e1f261cc637155684cd) |
source | object | |
state | string | (example: CHANGES_REQUESTED) |
state_reason | string | |
submitted_at | string (date-time) | |
tree | object | |
updated_at | string (date-time) | (example: 2011-04-14T16:00:49Z) |
url | string | |
user | object | A GitHub user. (title: Simple User) |
verification | object |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list_events_for_timeline | select | owner, repo, issue_number | per_page, page | List 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.
| Name | Datatype | Description |
|---|---|---|
issue_number | integer | The number that identifies the issue. |
owner | string | The account owner of the repository. The name is not case sensitive. |
repo | string | The name of the repository without the .git extension. The name is not case sensitive. |
page | integer | The page number of the results to fetch. For more information, see "Using pagination in the REST API." |
per_page | integer | The number of results per page (max 100). For more information, see "Using pagination in the REST API." |
SELECT examples
- list_events_for_timeline
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 }}'
;