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
7 changes: 1 addition & 6 deletions scripts/changelog_check.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
%r{^(?:\* )?changelog: ?(?<category>[\w -]{2,}), ?(?<subcategory>[\w -]{2,}), ?(?<change>.+)$}i
CATEGORIES = [
'User-Facing Improvements',
'Improvements', # Temporary for transitional period
'Bug Fixes',
'Internal',
'Upcoming Features',
Expand Down Expand Up @@ -106,7 +105,7 @@ def generate_invalid_changes(git_log)
end

def closest_change_category(change)
category = CATEGORIES.
CATEGORIES.
map do |category|
CategoryDistance.new(
category,
Expand All @@ -116,10 +115,6 @@ def closest_change_category(change)
filter { |category_distance| category_distance.distance <= MAX_CATEGORY_DISTANCE }.
max { |category_distance| category_distance.distance }&.
category

# Temporarily normalize legacy category in transitional period
category = 'User-Facing Improvements' if category == 'Improvements'
category
end

# Get the last valid changelog line for every Pull Request and tie it to the commit subject.
Expand Down