mirror of
https://gitea.com/gitea/tea.git
synced 2024-06-03 10:11:22 +05:30
fancy print
This commit is contained in:
parent
c141bb650a
commit
7a339d227f
|
@ -26,7 +26,7 @@ func PullDetails(pr *gitea.PullRequest, reviews []*gitea.PullReview, ciStatus *g
|
|||
state := formatPRState(pr)
|
||||
|
||||
out := fmt.Sprintf(
|
||||
"# #%d %s (%s)\n@%s created %s\t**%s** <- **%s**\n\nAllow maintainer to edit: %v\n\n%s\n\n",
|
||||
"# #%d %s (%s)\n@%s created %s\t**%s** <- **%s**\n\n%s\n\n",
|
||||
pr.Index,
|
||||
pr.Title,
|
||||
state,
|
||||
|
@ -34,7 +34,6 @@ func PullDetails(pr *gitea.PullRequest, reviews []*gitea.PullReview, ciStatus *g
|
|||
FormatTime(*pr.Created, false),
|
||||
base,
|
||||
head,
|
||||
pr.AllowMaintainerEdit,
|
||||
pr.Body,
|
||||
)
|
||||
|
||||
|
@ -65,6 +64,10 @@ func PullDetails(pr *gitea.PullRequest, reviews []*gitea.PullReview, ciStatus *g
|
|||
}
|
||||
}
|
||||
|
||||
if pr.AllowMaintainerEdit {
|
||||
out += "- Maintainers are allowed to edit"
|
||||
}
|
||||
|
||||
outputMarkdown(out, getRepoURL(pr.HTMLURL))
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue