Skip to content
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: Added pull review read only endpoints #10005

Closed
wants to merge 1 commit into from
Closed

Conversation

tbe
Copy link
Contributor

@tbe tbe commented Jan 26, 2020

API Endpoints for Reviews.

implements #5733

Body string `json:"body"`
CommitID string `json:"commit_id"`
Type string `json:"type"`

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you add state info too?

"state": "APPROVED",

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

o it still a draft :D - the start looks good 👍

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought about naming that state, but it was so misleading, that I've gone with type.

"state":"COMMENT"

just looks strange.

But i can rename this if wanted.

Copy link
Member

@6543 6543 Jan 26, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fair point ... just did a comparsion with the github api ...
and beside COMMENT, PENDING, APPROVED, REJECT could be interpreted as state ...

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But i can rename this if wanted.

please :)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe add field submitted_at?

Copy link
Contributor

@davidsvantesson davidsvantesson Feb 4, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

stale and official can also be interesting fields (GH doesn't have them).
Also possibility to get list of only latest review of each reviewer would be good, as that is what is seen on PR page.

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Jan 26, 2020
@lunny lunny added the modifies/api This PR adds API routes or modifies them label Jan 27, 2020
@bagasme
Copy link
Contributor

bagasme commented Jan 29, 2020

@tbe GH API reference?

@6543
Copy link
Member

6543 commented Jan 29, 2020

@bagasme this PR is still a DRAFT and the link to github api docu is this: https://developer.github.com/v3/pulls/reviews

@stale
Copy link

stale bot commented Apr 4, 2020

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 months. Thank you for your contributions.

@stale stale bot added the issue/stale label Apr 4, 2020
@6543
Copy link
Member

6543 commented Apr 4, 2020

@tbe what's the status?

@stale stale bot removed the issue/stale label Apr 4, 2020
@6543
Copy link
Member

6543 commented Apr 18, 2020

@tbe am I allowed to take over this?

@6543
Copy link
Member

6543 commented Apr 22, 2020

ok I'll take this

@6543 6543 mentioned this pull request Apr 26, 2020
13 tasks
@6543
Copy link
Member

6543 commented Apr 26, 2020

work will go on in #11224

@6543
Copy link
Member

6543 commented Apr 30, 2020

@tbe I have finished it :)

If you like you can have a look at #11224

@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. modifies/api This PR adds API routes or modifies them
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants