Skip to content

A platform for community discussion. Free, open, simple.

DEV: Fix release_note task warnings (#13794)

Jarek Radosz4223541bc5dd
diff --git a/lib/tasks/release_note.rake b/lib/tasks/release_note.rake
index 12d68c1e7fc..01bc01b35b2 100644
--- a/lib/tasks/release_note.rake
+++ b/lib/tasks/release_note.rake
@@ -1,8 +1,8 @@
# frozen_string_literal: true
-DATE_REGEX = /\A\d{4}-\d{2}-\d{2}/
+DATE_REGEX ||= /\A\d{4}-\d{2}-\d{2}/
-CHANGE_TYPES = [
+CHANGE_TYPES ||= [
{ pattern: /^FEATURE:/, heading: "New Features" },
{ pattern: /^FIX:/, heading: "Bug Fixes" },
{ pattern: /^UX:/, heading: "UX Changes" },