Skip to content
This repository has been archived by the owner on Nov 22, 2022. It is now read-only.

fix(board): Don't display closed issues in columns #666

Merged
merged 1 commit into from
Mar 25, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 1 addition & 10 deletions commands/issue/board/view/issue_board_view.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,28 +76,19 @@ func NewCmdView(f *cmdutils.Factory) *cobra.Command {
}

root := tview.NewFlex()
/*
AddItem(tview.NewBox().SetBorder(true).SetTitle("Left (1/2 x width of Top)"), 0, 1, false).
AddItem(tview.NewFlex().SetDirection(tview.FlexRow).
AddItem(tview.NewBox().SetBorder(true).SetTitle("Top"), 0, 1, false).
AddItem(tview.NewBox().SetBorder(true).SetTitle("Middle (3 x height of Top)"), 0, 3, false).
AddItem(tview.NewBox().SetBorder(true).SetTitle("Bottom (5 rows)"), 5, 1, false), 0, 2, false).
AddItem(tview.NewBox().SetBorder(true).SetTitle("Right (20 cols)"), 20, 1, false)
*/
var issues []*gitlab.Issue
// TODO: add `open` and `closed` board list. Both are not returned in the List API response payload
for _, list := range boadLists {
var boardIssues string
issues, err = api.ListIssues(apiClient, repo.FullName(), &gitlab.ListProjectIssuesOptions{
State: gitlab.String("opened"),
Labels: gitlab.Labels{list.Label.Name},
})
if err != nil {
return fmt.Errorf("error retrieving list issues: %w", err)
}
bx := tview.NewTextView().SetDynamicColors(true)
for _, issue := range issues {
//label, _ := issue.Labels.MarshalJSON()
//labelPrint := strings.Split(string(label), ", ")
var labelPrint string
var assignee string
totalLables := len(issue.Labels)
Expand Down