0
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-12-13 16:29:10 +01:00
gitea/models/issues
Kemal Zebari 242b331260
Prevent re-review and dismiss review actions on closed and merged PRs (#30065)
Resolves #29965.

---
Manually tested this by:
- Following the
[installation](https://docs.gitea.com/next/installation/install-with-docker#basics)
guide (but built a local Docker image instead)
- Creating 2 users, one who is the `Owner` of a newly-created repository
and the other a `Collaborator`
- Had the `Collaborator` create a PR that the `Owner` reviews
- `Collaborator` resolves conversation and `Owner` merges PR

And with this change we see that we can no longer see re-request review
button for the `Owner`:

<img width="1351" alt="Screenshot 2024-03-25 at 12 39 18 AM"
src="https://github.com/go-gitea/gitea/assets/60799661/bcd9c579-3cf7-474f-a51e-b436fe1a39a4">
2024-03-28 15:19:24 +00:00
..
assignees_test.go
assignees.go
comment_code.go
comment_list.go
comment_test.go
comment.go
content_history_test.go
content_history.go
dependency_test.go
dependency.go
issue_index.go
issue_label_test.go
issue_label.go
issue_list_test.go
issue_list.go
issue_lock.go
issue_project.go
issue_search.go
issue_stats.go
issue_test.go
issue_update.go
issue_user_test.go
issue_user.go
issue_watch_test.go
issue_watch.go
issue_xref_test.go
issue_xref.go
issue.go
label_test.go
label.go
main_test.go
milestone_list.go
milestone_test.go
milestone.go
pull_list.go
pull_test.go
pull.go
reaction.go
review_list.go
review_test.go
review.go
stopwatch_test.go
stopwatch.go
tracked_time_test.go
tracked_time.go