Pull DetailView: Show more pull informations #271
Merged
6543
merged 7 commits from 6543/tea:enhance-pullDetailView
into master
2 years ago
Loading…
Reference in new issue
There is no content yet.
Delete Branch '6543/tea:enhance-pullDetailView'
Deleting a branch is permanent. It CANNOT be undone. Continue?
close #258
demo:
}
print.PullDetails(pr)
reviews, _, _ := client.ListPullReviews(owner, repo, idx, gitea.ListPullReviewsOptions{})
Just a question:
This does ignore the returned error from ListPullReviews if I correctly understand that.. so
shouldn't that be changed to populate the error back to the caller? What is here the general
approach in Go? like the following?
Or do I misunderstand a thing here?
yes it just ignore an error ... since this api is realy new and wont work on old instances
Ok. Just wanted to know because my knowledge in Go is very limited. Thanks for your explanation.
Maybe put that explanation in a code comment for future reference ;)
It now print a error info in the corner bevore the pull detail view is shown ...
}
}
if pr.State == gitea.StateOpen && pr.Mergeable {
This check should also verify that the minum amount of reviews are approved, to be in line with the web ui (eg this PR currently shows
READY TO MERGE
.)Or is
pr.Mergeable
about git conflicts? In that case you should printNo Conflicts
instead-> https://github.com/go-gitea/gitea/issues/13879
and yes I think it's a good idear to only show NoConflicts at the moment
2b11f408fd
into master 2 years ago2b11f408fd
.