提交 fa532970 编写于 作者: J Jan Provaznik

Sort labels by reference

Labels are sorted by reference, not title. This caused random CI
failure.
上级 b027b3e0
......@@ -10,9 +10,9 @@ shared_examples 'label note created from events' do
end
def label_refs(events)
sorted_labels = events.map(&:label).compact.sort_by(&:title)
labels = events.map(&:label).compact
sorted_labels.map { |l| l.to_reference}.join(' ')
labels.map { |l| l.to_reference}.sort.join(' ')
end
let(:time) { Time.now }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册