Skip to content
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
4 changes: 4 additions & 0 deletions githubtasksutils.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,17 @@ func (s *Server) validateIntegrity(ctx context.Context) error {
for _, milestone := range project.GetMilestones() {
if milestone.GetState() == pb.Milestone_ACTIVE {
activeMilestone = true
if len(milestone.GetTasks()) == 0 {
s.RaiseIssue(ctx, "Task Issue", fmt.Sprintf("%v of %v has no tasks", project.GetName(), milestone.GetName()), false)
}
}
}

if !activeMilestone {
s.RaiseIssue(ctx, "Task Issue", fmt.Sprintf("%v has no active milestones", project.GetName()), false)
}
}

}

return err
Expand Down