go-gitea / gitea

Git with a cup of tea! Painless self-hosted all-in-one software development service, including Git hosting, code review, team collaboration, package registry and CI/CD
https://gitea.com
MIT License
44.61k stars 5.45k forks source link

API /pulls/{pr}/reviews produces runtime error when reviewers list contains a group #15104

Closed rlogiacco closed 3 years ago

rlogiacco commented 3 years ago

Description

First you have to define a team, this is the reason I couldn't replicate it over https://try.gitea.io.

To reproduce the issue, just create a PR and add the team as reviewers. From now on the API to retrieve the reviews on the PR (/api/v1/repos/<org>/<repo>/pulls/<prn>/reviews) will fail, returning a 500 status code with the above stack trace being logged on the console.

Removing the group from the reviewers DOES NOT solve the issue and you keep getting the same error.

Screenshots

rlogiacco commented 3 years ago

thank you for the fast fix!

rlogiacco commented 3 years ago

I confirm the last release 1.13.6 is not more affected by this issue. Thank you again!