Commit fa532970 authored by Jan Provaznik's avatar Jan Provaznik

Sort labels by reference

Labels are sorted by reference, not title. This caused random CI
failure.
parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment