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:
authorPeter Dave Hello <hsu@peterdavehello.org>2019-07-23 15:23:51 +0300
committerLin Jen-Shin <godfat@godfat.org>2019-07-23 15:23:51 +0300
commitb2f143597ca22b9585cc758453ae920d9b9d0fe3 (patch)
tree8103bb5a51882d590867b0092e73d71186f795bd /scripts
parentb2e4a7957ab7ae8e4ed5ae1fd4c0f3f826f26777 (diff)
Extend yamllint test to changelogs
cc !30979
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/lint-changelog-yaml24
1 files changed, 0 insertions, 24 deletions
diff --git a/scripts/lint-changelog-yaml b/scripts/lint-changelog-yaml
deleted file mode 100755
index 06d502c4676..00000000000
--- a/scripts/lint-changelog-yaml
+++ /dev/null
@@ -1,24 +0,0 @@
-#!/usr/bin/env ruby
-
-require 'yaml'
-
-invalid_changelogs = Dir['changelogs/**/*'].reject do |changelog|
- next true if changelog =~ /((README|archive)\.md|unreleased(-ee)?)$/
- next false unless changelog.end_with?('.yml')
-
- begin
- YAML.load_file(changelog)
- rescue => exception
- puts exception
- end
-end
-
-if invalid_changelogs.any?
- puts
- puts "Invalid changelogs found!\n"
- puts invalid_changelogs.sort
- exit 1
-else
- puts "All changelogs are valid YAML.\n"
- exit 0
-end