-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
API for getting PullRequest/Issue timeline data. #13250
Labels
modifies/api
This PR adds API routes or modifies them
type/proposal
The new feature has not been accepted yet but needs to be discussed first.
Comments
Seems reasonable to me but is there a github API we could implement instead? |
6543
added
the
type/proposal
The new feature has not been accepted yet but needs to be discussed first.
label
Oct 21, 2020
6 tasks
lunny
changed the title
New GET issue timeline API feature request.
API for getting PullRequest/Issue timeline data.
Oct 15, 2021
lunny
added a commit
that referenced
this issue
Jan 1, 2022
* Add API to get issue/pull comments and events (timeline) Adds an API to get both comments and events in one endpoint with all required data. Closes #13250 * Fix swagger * Don't show code comments (use review api instead) * fmt * Fix comment * Time -> TrackedTime * Use var directly * Add logger * Fix lint * Fix test * Add comments * fmt * [test] get issue directly by ID * Update test * Add description for changed refs * Fix build issues + lint * Fix build * Use string enums * Update swagger * Support `page` and `limit` params * fmt + swagger * Use global slices Co-authored-by: zeripath <[email protected]> Co-authored-by: Lunny Xiao <[email protected]>
Chianina
pushed a commit
to Chianina/gitea
that referenced
this issue
Mar 28, 2022
) * Add API to get issue/pull comments and events (timeline) Adds an API to get both comments and events in one endpoint with all required data. Closes go-gitea#13250 * Fix swagger * Don't show code comments (use review api instead) * fmt * Fix comment * Time -> TrackedTime * Use var directly * Add logger * Fix lint * Fix test * Add comments * fmt * [test] get issue directly by ID * Update test * Add description for changed refs * Fix build issues + lint * Fix build * Use string enums * Update swagger * Support `page` and `limit` params * fmt + swagger * Use global slices Co-authored-by: zeripath <[email protected]> Co-authored-by: Lunny Xiao <[email protected]>
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
modifies/api
This PR adds API routes or modifies them
type/proposal
The new feature has not been accepted yet but needs to be discussed first.
[x]
):Description
Proposed API route: GET
/repos/{owner}/{repo}/issues/{index}/timeline
Currently, there is no way to get a timeline of issue events (differing comment types in the database) via the API. I am proposing a new API route on repo issues that gets the same data as-is displayed on the GUI below the issue description (see screenshot), similar to the content rendered by the comments template (
comments.tmpl
).The returned result could be an array of objects with the essential information from the timeline object.
For example:
Screenshots
The text was updated successfully, but these errors were encountered: