Handle Team Reviews #515

Merged
6543 merged 4 commits from 6543/tea:handle_team-reviews into main 2022-09-29 02:49:24 +00:00
Owner

at the moment we crash with an nil exeption if there exist team reviews

this fix it and add support to display them

to test

use old tea and exec: tea pr 515 against this pull
then test with patched version :)

at the moment we crash with an nil exeption if there exist team reviews this fix it and add support to display them ## to test use old tea and exec: `tea pr 515` against this pull then test with patched version :)
6543 added this to the v0.10.0 milestone 2022-09-27 11:38:49 +00:00
6543 added the
kind/bug
kind
enhancement
labels 2022-09-27 11:38:49 +00:00
6543 added 1 commit 2022-09-27 11:38:50 +00:00
dont crash, display team reviews
All checks were successful
continuous-integration/drone/pr Build is passing
a6849ccf1a
Author
Owner

![](https://gitea.com/attachments/0e317bfa-cd05-4d50-a6b7-f8f281559988)
6543 reviewed 2022-09-27 11:40:01 +00:00
@ -19,6 +19,8 @@ var ciStatusSymbols = map[gitea.StatusState]string{
gitea.StatusFailure: "❌ ",
}
const teamSymbol = "???"
Author
Owner

if there is a better icon please tell :)

if there is a better icon please tell :)
6543 marked this conversation as resolved
6543 requested review from Maintainers 2022-09-27 11:40:56 +00:00
noerw reviewed 2022-09-27 11:41:58 +00:00
@ -19,6 +19,8 @@ var ciStatusSymbols = map[gitea.StatusState]string{
gitea.StatusFailure: "❌ ",
}
const teamSymbol = "???"
Member

:D I'd leave that out, @foo/bar clearly identifies this as a team already.
It doesn't render in my terminals anyway

:D I'd leave that out, @foo/bar clearly identifies this as a team already. It doesn't render in my terminals anyway
Author
Owner

rm'ed

rm'ed
noerw marked this conversation as resolved
noerw approved these changes 2022-09-27 11:42:57 +00:00
6543 added 1 commit 2022-09-27 11:43:27 +00:00
no teamSymbol
All checks were successful
continuous-integration/drone/pr Build is passing
9c1ab6649c
6543 requested review from Maintainers 2022-09-27 11:43:53 +00:00
Author
Owner

#515 (comment)

screenshot updated ;)

https://gitea.com/gitea/tea/pulls/515#issuecomment-718188 screenshot updated ;)
6543 added 1 commit 2022-09-27 15:40:57 +00:00
Merge branch 'main' into handle_team-reviews
All checks were successful
continuous-integration/drone/pr Build is passing
e26aed9f9e
wxiaoguang reviewed 2022-09-28 02:20:41 +00:00
@ -108,0 +109,4 @@
}
} else if review.ReviewerTeam != nil {
if r, ok := reviewByUserOrTeam[review.ReviewerTeam.Name]; !ok || review.Submitted.After(r.Submitted) {
reviewByUserOrTeam[review.ReviewerTeam.Name] = review
Member

What if the team name conflicts with user name?

What if the team name conflicts with user name?
6543 marked this conversation as resolved
6543 added 1 commit 2022-09-29 00:29:05 +00:00
use uniqe IDs for sure
All checks were successful
continuous-integration/drone/pr Build is passing
ef2b0c3214
Author
Owner
@wxiaoguang done
wxiaoguang approved these changes 2022-09-29 02:07:14 +00:00
6543 merged commit c1c7870ceb into main 2022-09-29 02:49:24 +00:00
6543 deleted branch handle_team-reviews 2022-09-29 02:49:24 +00:00
6543 referenced this issue from a commit 2022-09-29 02:49:25 +00:00
Sign in to join this conversation.
No description provided.