-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Show review labels in the pull request lists #9274
Closed
oscarcosta
wants to merge
24
commits into
go-gitea:master
from
oscarcosta:review_labels_in_pull_lists
Closed
Changes from 19 commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
d9f1bbf
Show reviews labels - Review required, Approved and Changes requested…
oscarcosta 4ff5406
Removing non translated labels
oscarcosta 46b9e29
Checking rejected reviews before enough approvals.
oscarcosta 8236a04
Showing number of reviews required, approvals and changes requests
oscarcosta 6686bd7
Removing translations as they are addressed through Crowdin.
oscarcosta 3761e06
Setting Issue's reference in PullRequest when loading PullRequests.
oscarcosta 582d7ef
Fix runtime error: invalid memory address or nil pointer dereference.
oscarcosta d723929
Simplifying conditional expressions.
oscarcosta 9a6f4a8
Revert "Simplifying conditional expressions."
oscarcosta f670132
Merge branch 'master' into review_labels_in_pull_lists
oscarcosta 3c16eea
Merge branch 'master' into review_labels_in_pull_lists
oscarcosta 3f93cfe
Calling pr.LoadIssue() to load issue info from database.
oscarcosta d3657fd
suggestions
6543 deca4a8
Merge pull request #1 from 6543/pull_9274
oscarcosta 4f792ec
Getting labels and counters of reviews from two methods, thus removin…
oscarcosta fbd4c09
Moved methods GetRejectedReviewsCount, HasEnoughApprovals and GetGran…
oscarcosta 64b47d5
Fix comment
oscarcosta b3ef97e
Merge branch 'master' of github.com:go-gitea/gitea into review_labels…
oscarcosta 01bd93c
Returning status for reviews
oscarcosta f84ce89
Merge branch 'master' of github.com:go-gitea/gitea into review_labels…
oscarcosta eea70d5
Merge branch 'master' of github.com:go-gitea/gitea into review_labels…
oscarcosta 6577c95
Refactor: extracting code that load issues in PulRequestList to a method
oscarcosta d97dc25
Batch loading protected branch objects in pull_list.go
oscarcosta c63d0a9
Loading pull request attributes
oscarcosta 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 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 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 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 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 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 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 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 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 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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If someone sent a rejected review and after that send another approval review. We should only count 1 approval but 0 rejected.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is in the
official
column which is accounted for, only last review of a reviewer can be official. (The reviewer shall also be in the review whitelist)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
official
means this review could be counted as approvals but it don't mean it's the last review of the official reviewer. See https://github.com/go-gitea/gitea/blob/master/models/review.go#L57-L58