Pull DetailView: Show more pull informations (#271)

Pull Detailview: add head/base-branch, reviews, mergable info

print info if reviews can not be loaded

No Conflicts

Reviewed-on: https://gitea.com/gitea/tea/pulls/271
Reviewed-by: Norwin <noerw@noreply.gitea.io>
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-Authored-By: 6543 <6543@obermui.de>
Co-Committed-By: 6543 <6543@obermui.de>
This commit is contained in:
6543
2020-12-08 12:06:05 +08:00
parent d0e05e8be2
commit 2b11f408fd
4 changed files with 52 additions and 9 deletions

View File

@ -143,7 +143,7 @@ func runPullsCreate(ctx *cli.Context) error {
log.Fatalf("could not create PR from %s to %s:%s: %s", head, ownerArg, base, err)
}
print.PullDetails(pr)
print.PullDetails(pr, nil)
fmt.Println(pr.HTMLURL)
return err