diff options
author | zeripath <art27@cantab.net> | 2022-06-09 03:50:05 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-09 10:50:05 +0800 |
commit | 7948cb3149ab64484a8d4c6644f53f9f39accbef (patch) | |
tree | 57d26b3cd16456876ded4305ce0cb0ee375b9fb9 /modules/migration | |
parent | d087554d81e56bff6bde9c68bf610daae15b011e (diff) | |
download | gitea-7948cb3149ab64484a8d4c6644f53f9f39accbef.tar.gz gitea-7948cb3149ab64484a8d4c6644f53f9f39accbef.zip |
Prevent NPE whilst migrating if there is a team request review (#19855)
A pr.Reviewer may be nil when migrating from Gitea if this is a team
request review.
We do not migrate teams therefore we cannot map these requests, but we can
migrate user requests.
Signed-off-by: Andrew Thornton <art27@cantab.net>
Diffstat (limited to 'modules/migration')
-rw-r--r-- | modules/migration/review.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/migration/review.go b/modules/migration/review.go index e4db33d98f..b5a054c642 100644 --- a/modules/migration/review.go +++ b/modules/migration/review.go @@ -18,6 +18,7 @@ const ( ReviewStateApproved = "APPROVED" ReviewStateChangesRequested = "CHANGES_REQUESTED" ReviewStateCommented = "COMMENTED" + ReviewStateRequestReview = "REQUEST_REVIEW" ) // Review is a standard review information |