mirror of
https://gitea.com/gitea/tea.git
synced 2026-10-26 19:11:25 +01:00
fix(pr): review decision ignores comment reviews, paged review list, pending review comments hidden, team request names (follow gh)
Signed-off-by: bircni <bircni@icloud.com>
This commit is contained in:
19 files changed
+258
-50
No files matched your search
@@ -166,7 +166,7 @@ func (a *application) pullViewCommand() *cobra.Command {
|
||||
if details.reviews, err = (services.Reviews{Client: t.client, Repository: t.Repo}).All(cmd.Context(), n); err != nil {
|
||||
return err
|
||||
}
|
||||
item.ReviewDecision = services.ReviewDecision(services.LatestReviews(details.reviews), len(item.Reviewers)+len(item.ReviewerTeams) > 0)
|
||||
item.ReviewDecision = services.ReviewDecision(details.reviews, len(item.Reviewers)+len(item.ReviewerTeams) > 0)
|
||||
if a.options.json != "" {
|
||||
return a.writeJSON(cmd, item)
|
||||
}
|
||||
@@ -179,7 +179,7 @@ func (a *application) pullViewCommand() *cobra.Command {
|
||||
}}
|
||||
cmd.Flags().BoolVarP(&web, "web", "w", false, "Open the pull request in the browser")
|
||||
cmd.Flags().BoolVarP(&comments, "comments", "c", false, "Show comments and reviews")
|
||||
cmd.ValidArgsFunction = a.completePulls("all")
|
||||
cmd.ValidArgsFunction = firstArg(a.completePulls("all"))
|
||||
cmd.Example = `# View the pull request of the current branch
|
||||
$ tea pr view
|
||||
|
||||
|
||||
Reference in new issue
Block a user