Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'bin/changelog')
-rwxr-xr-xbin/changelog21
1 files changed, 11 insertions, 10 deletions
diff --git a/bin/changelog b/bin/changelog
index 45b6295e331..bdf159a0a22 100755
--- a/bin/changelog
+++ b/bin/changelog
@@ -8,16 +8,6 @@
require 'optparse'
require 'yaml'
-Options = Struct.new(
- :amend,
- :author,
- :dry_run,
- :force,
- :merge_request,
- :title,
- :type,
- :ee
-)
INVALID_TYPE = -1
module ChangelogHelpers
@@ -40,6 +30,17 @@ end
class ChangelogOptionParser
extend ChangelogHelpers
+ Options = Struct.new(
+ :amend,
+ :author,
+ :dry_run,
+ :force,
+ :merge_request,
+ :title,
+ :type,
+ :ee
+ )
+
Type = Struct.new(:name, :description)
TYPES = [
Type.new('added', 'New feature'),