mirror of
https://gitea.com/gitea/tea.git
synced 2025-09-02 09:58:29 +02:00
Issues/Pulls: Details show State (#196)
Pull: Render output & add State to issues Co-authored-by: 6543 <6543@obermui.de> Reviewed-on: https://gitea.com/gitea/tea/pulls/196 Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com> Reviewed-by: Norwin <noerw@noreply.gitea.io>
This commit is contained in:
@ -10,7 +10,6 @@ import (
|
||||
"strconv"
|
||||
|
||||
"code.gitea.io/sdk/gitea"
|
||||
|
||||
"github.com/charmbracelet/glamour"
|
||||
"github.com/urfave/cli/v2"
|
||||
)
|
||||
@ -59,8 +58,9 @@ func runIssueDetail(ctx *cli.Context, index string) error {
|
||||
return err
|
||||
}
|
||||
|
||||
in := fmt.Sprintf("# #%d %s\n%s created %s\n\n%s\n", issue.Index,
|
||||
in := fmt.Sprintf("# #%d %s (%s)\n%s created %s\n\n%s\n", issue.Index,
|
||||
issue.Title,
|
||||
issue.State,
|
||||
issue.Poster.UserName,
|
||||
issue.Created.Format("2006-01-02 15:04:05"),
|
||||
issue.Body,
|
||||
|
Reference in New Issue
Block a user