Show PR CI status (#306)

fix layout of pr reviews

show PR CI status

put conflict info in status list

remove line

show merged state

deduplicate reviews by user

Co-authored-by: Norwin Roosen <git@nroo.de>
Reviewed-on: https://gitea.com/gitea/tea/pulls/306
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Reviewed-by: 6543 <6543@obermui.de>
Co-Authored-By: Norwin <noerw@noreply.gitea.io>
Co-Committed-By: Norwin <noerw@noreply.gitea.io>
This commit is contained in:
Norwin
2020-12-17 01:16:50 +08:00
committed by 6543
parent 782a6318f3
commit 83b73ce78e
3 changed files with 78 additions and 18 deletions

View File

@ -60,6 +60,11 @@ func runPullDetail(cmd *cli.Context, index string) error {
fmt.Printf("error while loading reviews: %v\n", err)
}
print.PullDetails(pr, reviews)
ci, _, err := client.GetCombinedStatus(ctx.Owner, ctx.Repo, pr.Head.Sha)
if err != nil {
fmt.Printf("error while loading CI: %v\n", err)
}
print.PullDetails(pr, reviews, ci)
return nil
}