Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fetch timelines for issues that have zero comments #165

Merged
merged 1 commit into from
Jun 24, 2020
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
7 changes: 3 additions & 4 deletions pkg/hubbub/search.go
Original file line number Diff line number Diff line change
Expand Up @@ -368,14 +368,12 @@ func needComments(i GitHubItem, fs []Filter) bool {

func needTimeline(i GitHubItem, fs []Filter, hidden bool) bool {
if i.GetState() != "open" {
klog.V(2).Infof("#%d no timeline required: in state %q", i.GetNumber(), i.GetState())
return false
}

if i.GetUpdatedAt() == i.GetCreatedAt() {
return false
}

if i.GetComments() == 0 {
klog.V(2).Infof("#%d no timeline required: no update since creation", i.GetNumber())
return false
}

Expand All @@ -395,6 +393,7 @@ func needTimeline(i GitHubItem, fs []Filter, hidden bool) bool {
}

if hidden {
klog.V(2).Infof("#%d no timeline required: on a hidden page", i.GetNumber())
return false
}

Expand Down