-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
Add reviewers selection to new pull request fixes #26289 #32403
Conversation
this needs to be a negative integer
logics for fetching reviewers in pull requests is now placed in the RetrieveRepoMetas
the review requet notifaction is now sent after the new pull request notification.
Thank you all for the work. Actually IMO there are still problems in this PR, for example: incorrect CSS classes like There is also a blocker in repo-legacy.ts, I have proposed a refactoring PR "Refactor repo legacy #32404", after #32404, I could help to resolve the conflicts here and fix the problems. |
Does this replace #26596 ? |
Made some changes, and merge the duplicate code. Now we just use one "reviewer_list.tmpl" to handle the selection. And the new |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's almost done from my side and I would vote my approval.
Some changes seem more than expected, indeed they were done for improving the maintainability, some legacy functions are too complex to maintain.
I have manually tested the New PR page and PR view page. If anything wrong happens, please let me know and I will fix them ASAP.
Screenshots:
44f8163
to
823b1c9
Compare
* giteaofficial/main: Refactor sidebar label selector (go-gitea#32460) Fix mermaid diagram height when initially hidden (go-gitea#32457) Add reviewers selection to new pull request (go-gitea#32403) Fix issue sidebar (go-gitea#32455) Refactor language menu and dom utils (go-gitea#32450) Fix broken releases when re-pushing tags (go-gitea#32435) Refactor issue page info (go-gitea#32445) Split issue sidebar into small templates (go-gitea#32444) Only provide the commit summary for Discord webhook push events (go-gitea#32432) Add new event commit status creation and webhook implementation (go-gitea#27151) Support quote selected comments to reply (go-gitea#32431) Move AddCollabrator and CreateRepositoryByExample to service layer (go-gitea#32419) # Conflicts: # templates/repo/issue/view_content/context_menu.tmpl
@@ -197,7 +210,17 @@ func NewPullRequest(ctx context.Context, repo *repo_model.Repository, issue *iss | |||
} | |||
notify_service.IssueChangeAssignee(ctx, issue.Poster, issue, assignee, false, assigneeCommentMap[assigneeID]) | |||
} | |||
|
|||
permDoer, err := access_model.GetUserRepoPermission(ctx, repo, issue.Poster) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like these changes are duplicated as line 193 issue_service.ReviewRequestNotify
The UI looks just like the assignee selection here because I think the actions from the pull request edit dialog don't make much sense here. The assignee selection on the pr create and edit pages also differ.
Hi, I've not done this before, so bear with me. I tried to make changes on @splitt3r 's pull request but was rejected due to a permission issue. Therefore, I had to fork my own repository and incorporate what was done in that pull request. In addition to @splitt3r and @sebastian-sauer's commits, I've also added a commit to resolve the conflicts. Furthermore, I have included two other commits to address @jpraet 's comments.
Please let me know if there is anything else I need to address. Thank you!