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

Fix get reviewers' bug #32415

Merged
merged 15 commits into from
Nov 22, 2024
Merged

Conversation

lunny
Copy link
Member

@lunny lunny commented Nov 4, 2024

This PR rewrites GetReviewer function and move it to service layer.

Reviewers should not be watchers, so that this PR removed all watchers from reviewers. When the repository is under an organization, the pull request unit read permission will be checked to resolve the bug of #32394

Fix #32394

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Nov 4, 2024
@pull-request-size pull-request-size bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Nov 4, 2024
@lunny lunny added type/bug backport/v1.22 This PR should be backported to Gitea 1.22 and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Nov 4, 2024
@github-actions github-actions bot added the modifies/go Pull requests that update Go code label Nov 4, 2024
@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Nov 5, 2024
@pull-request-size pull-request-size bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Nov 5, 2024
@github-actions github-actions bot added the modifies/api This PR adds API routes or modifies them label Nov 5, 2024
@lunny lunny marked this pull request as ready for review November 6, 2024 06:27
services/pull/reviewer.go Outdated Show resolved Hide resolved
services/pull/reviewer.go Outdated Show resolved Hide resolved
Copy link
Contributor

@jackHay22 jackHay22 left a comment

Choose a reason for hiding this comment

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

👍

@wxiaoguang wxiaoguang removed the backport/v1.22 This PR should be backported to Gitea 1.22 label Nov 15, 2024
Copy link
Contributor

@kdumontnu kdumontnu left a comment

Choose a reason for hiding this comment

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

Nice 💯 I think this is a great fix (whereas, we were using incorrect permissions before).

@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Nov 21, 2024
@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Nov 22, 2024
@kdumontnu
Copy link
Contributor

kdumontnu commented Nov 22, 2024

@wxiaoguang are you okay adding back the 1.22 backport? This is a pretty clear & significant bug fix.

@wxiaoguang
Copy link
Contributor

No block from my side since you have reviewed. 🙏

@kdumontnu kdumontnu added the backport/v1.22 This PR should be backported to Gitea 1.22 label Nov 22, 2024
@techknowlogick techknowlogick merged commit fe49cb0 into go-gitea:main Nov 22, 2024
26 checks passed
@GiteaBot GiteaBot added this to the 1.24.0 milestone Nov 22, 2024
@wxiaoguang wxiaoguang deleted the lunny/fix_get_reviewers_bug branch November 22, 2024 15:46
zjjhot added a commit to zjjhot/gitea that referenced this pull request Nov 22, 2024
* giteaofficial/main:
  Fix get reviewers' bug (go-gitea#32415)
  Fix issues with inconsistent spacing in areas (go-gitea#32607)
  Refactor markup render system (go-gitea#32589)
  Style unification for the issue_management area (go-gitea#32605)
  Enhancing Gitea OAuth2 Provider with Granular Scopes for Resource Access (go-gitea#32573)
@lunny lunny modified the milestones: 1.24.0, 1.23.0 Nov 22, 2024
@GiteaBot
Copy link
Contributor

I was unable to create a backport for 1.22. @lunny, please send one manually. 🍵

go run ./contrib/backport 32415
...  // fix git conflicts if any
go run ./contrib/backport --continue

@GiteaBot GiteaBot added the backport/manual No power to the bots! Create your backport yourself! label Nov 22, 2024
lunny added a commit to lunny/gitea that referenced this pull request Nov 22, 2024
This PR rewrites `GetReviewer` function and move it to service layer.

Reviewers should not be watchers, so that this PR removed all watchers
from reviewers. When the repository is under an organization, the pull
request unit read permission will be checked to resolve the bug of

Fix go-gitea#32394
@lunny lunny added the backport/done All backports for this PR have been created label Nov 22, 2024
lunny added a commit that referenced this pull request Nov 23, 2024
This PR rewrites `GetReviewer` function and move it to service layer.

Reviewers should not be watchers, so that this PR removed all watchers
from reviewers. When the repository is under an organization, the pull
request unit read permission will be checked to resolve the bug of

Fix #32394
Backport #32415
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport/done All backports for this PR have been created backport/manual No power to the bots! Create your backport yourself! backport/v1.22 This PR should be backported to Gitea 1.22 lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. modifies/api This PR adds API routes or modifies them modifies/go Pull requests that update Go code size/L Denotes a PR that changes 100-499 lines, ignoring generated files. type/bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PR reviewers list contains invalid options
8 participants