aboutsummaryrefslogtreecommitdiffstats
path: root/models/fixtures
diff options
context:
space:
mode:
authorCory Todd <2796559+corytodd@users.noreply.github.com>2023-06-09 07:34:49 -0700
committerGitHub <noreply@github.com>2023-06-09 16:34:49 +0200
commit179704695c2c50b3577a25f16d7344eadb3b2da3 (patch)
tree550fcc195369f2b958dc8ba275339523f27be0d0 /models/fixtures
parent81211db077af0465848693b85f36894b5c17c427 (diff)
downloadgitea-179704695c2c50b3577a25f16d7344eadb3b2da3.tar.gz
gitea-179704695c2c50b3577a25f16d7344eadb3b2da3.zip
Fix duplicate Reviewed-by trailers (#24796)
Enable deduplication of unofficial reviews. When pull requests are configured to include all approvers, not just official ones, in the default merge messages it was possible to generate duplicated Reviewed-by lines for a single person. Add an option to find only distinct reviews for a given query. fixes #24795 --------- Signed-off-by: Cory Todd <cory.todd@canonical.com> Co-authored-by: Giteabot <teabot@gitea.io>
Diffstat (limited to 'models/fixtures')
-rw-r--r--models/fixtures/review.yml27
1 files changed, 27 insertions, 0 deletions
diff --git a/models/fixtures/review.yml b/models/fixtures/review.yml
index d44d0cde98..cc2c7e06e7 100644
--- a/models/fixtures/review.yml
+++ b/models/fixtures/review.yml
@@ -105,3 +105,30 @@
official: true
updated_unix: 1603196749
created_unix: 1603196749
+
+-
+ id: 13
+ type: 1
+ reviewer_id: 5
+ issue_id: 11
+ content: "old review from user5"
+ updated_unix: 946684820
+ created_unix: 946684820
+
+-
+ id: 14
+ type: 1
+ reviewer_id: 5
+ issue_id: 11
+ content: "duplicate review from user5 (latest)"
+ updated_unix: 946684830
+ created_unix: 946684830
+
+-
+ id: 15
+ type: 1
+ reviewer_id: 6
+ issue_id: 11
+ content: "singular review from user6 and final review for this pr"
+ updated_unix: 946684831
+ created_unix: 946684831