Skip to content

Commit

Permalink
no milestone means the empty milestone
Browse files Browse the repository at this point in the history
  • Loading branch information
lavalamp committed May 29, 2016
1 parent e3d0377 commit 8f3b7bb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions mungegithub/mungers/submit-queue.go
Original file line number Diff line number Diff line change
Expand Up @@ -753,8 +753,12 @@ func (sq *SubmitQueue) validForMerge(obj *github.MungeObject) bool {
return false
}

if milestone := obj.Issue.Milestone; milestone != nil && milestone.Title != nil {
title := *milestone.Title
if milestone := obj.Issue.Milestone; true {
title := ""
// Net set means the empty milestone, ""
if milestone != nil && milestone.Title != nil {
title = *milestone.Title
}
for _, blocked := range sq.doNotMergeMilestones {
if title == blocked {
sq.SetMergeStatus(obj, unmergeableMilestone)
Expand Down

0 comments on commit 8f3b7bb

Please sign in to comment.