Skip to content

Commit

Permalink
chore: avoid showing nodes without epics
Browse files Browse the repository at this point in the history
  • Loading branch information
moul committed Sep 12, 2018
1 parent 5285c24 commit ac380bb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions graphviz.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ func roadmapGraph(issues Issues, opts *renderOptions) (string, error) {
}
if !opts.ShowOrphans {
issues.HideOrphans()
issues.HideEpicLess()
}
issues.processEpicLinks()

Expand Down
9 changes: 9 additions & 0 deletions issue.go
Original file line number Diff line number Diff line change
Expand Up @@ -468,3 +468,12 @@ func (issues Issues) HideOrphans() {
}
}
}

func (issues Issues) HideEpicLess() {
for _, issue := range issues {
if !issue.LinkedWithEpic {
issue.Hidden = true
}
}
issues.processEpicLinks()
}

0 comments on commit ac380bb

Please sign in to comment.