-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Add team support for review request #12039
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
Merged
Merged
Changes from 10 commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
cfa6db7
Add team support for review request
a1012112796 0501111
Merge branch 'master' into team_review_request
a1012112796 3196c8e
fix lint
a1012112796 8e37106
Merge branch 'master' into team_review_request
a1012112796 3c02d48
Apply review suggestion
a1012112796 df750f5
Merge branch 'master' into team_review_request
a1012112796 fbef6d7
Apply suggestion from review @lafriks
a1012112796 66a0f47
fix lint
a1012112796 3685fc6
Merge branch 'master' into team_review_request
a1012112796 f36a5ec
Update models/migrations/v153.go
a1012112796 26eb8c4
Apply suggestion from code review @lafriks
a1012112796 a6b94f6
Merge branch 'master' into team_review_request
a1012112796 515d09d
fix lint
a1012112796 3f8fee5
fix test
a1012112796 39f0b94
Update models/repo.go
a1012112796 94ee9d5
Apply suggestion from code review
a1012112796 ae7b7ad
Merge branch 'master' into team_review_request
a1012112796 a4e0ffc
Merge branch 'master' into team_review_request
a1012112796 7d75af0
splite get reviewers and add some test
a1012112796 f81ea8d
Merge branch 'master' into team_review_request
a1012112796 49ddcc7
fix code style
a1012112796 1037845
Apply suggestions from code review
a1012112796 c05ba9f
Merge branch 'master' into team_review_request
a1012112796 c25e769
Apply suggestions from code review
a1012112796 c83cc04
Merge branch 'master' into team_review_request
a1012112796 ef394de
Remove getPrivateReviewers and getPublicReviewer
zeripath 877c38b
Simplifications
zeripath 170b57f
Simplify and improve logging
zeripath 75a1ae6
Log the underlying panic in runMigrateTask (#13096)
zeripath 3035a37
Update routers/repo/issue.go
a1012112796 6b8e0be
Merge pull request #2 from zeripath/team_review_request
a1012112796 b2f1db1
Merge branch 'master' into team_review_request
a1012112796 386cb75
fix lint and return 403 for reviewer not exist
a1012112796 b13cad0
fix bugs
a1012112796 c0a29f7
Merge branch 'master' into team_review_request
a1012112796 0b909f9
Update models/review.go
a1012112796 857f5de
Merge branch 'master' into team_review_request
zeripath e5d3c88
Add octicon-people to the team reviews
zeripath 9da446e
Merge branch 'master' into team_review_request
lafriks File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// Copyright 2020 The Gitea Authors. All rights reserved. | ||
// Use of this source code is governed by a MIT-style | ||
// license that can be found in the LICENSE file. | ||
|
||
package migrations | ||
|
||
import ( | ||
"xorm.io/xorm" | ||
) | ||
|
||
func addTeamReviewRequestSupport(x *xorm.Engine) error { | ||
type Review struct { | ||
ReviewerTeamID int64 `xorm:"NOT NULL DEFAULT 0"` | ||
} | ||
|
||
type Comment struct { | ||
AssigneeTeamID int64 `xorm:"NOT NULL DEFAULT 0"` | ||
} | ||
|
||
if err := x.Sync2(new(Review)); err != nil { | ||
return err | ||
} | ||
|
||
return x.Sync2(new(Comment)) | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.