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:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-07-19 17:16:28 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-07-19 17:16:28 +0300
commite4384360a16dd9a19d4d2d25d0ef1f2b862ed2a6 (patch)
tree2fcdfa7dcdb9db8f5208b2562f4b4e803d671243 /tooling/bin
parentffda4e7bcac36987f936b4ba515995a6698698f0 (diff)
Add latest changes from gitlab-org/gitlab@16-2-stable-eev16.2.0-rc42
Diffstat (limited to 'tooling/bin')
-rwxr-xr-xtooling/bin/find_only_allowed_files_changes2
-rwxr-xr-xtooling/bin/gettext_extractor17
2 files changed, 13 insertions, 6 deletions
diff --git a/tooling/bin/find_only_allowed_files_changes b/tooling/bin/find_only_allowed_files_changes
index c40048c66fa..1e903a4199f 100755
--- a/tooling/bin/find_only_allowed_files_changes
+++ b/tooling/bin/find_only_allowed_files_changes
@@ -3,6 +3,8 @@
require_relative '../lib/tooling/find_changes'
+ALLOWED_FILE_TYPES = ['.js', '.vue', '.md', '.scss'].freeze
+
if Tooling::FindChanges.new(from: :api).only_allowed_files_changed
puts "Only files with extensions #{ALLOWED_FILE_TYPES.join(', ')} were changed"
exit 0
diff --git a/tooling/bin/gettext_extractor b/tooling/bin/gettext_extractor
index 39f029616df..c430e89a9d3 100755
--- a/tooling/bin/gettext_extractor
+++ b/tooling/bin/gettext_extractor
@@ -4,6 +4,7 @@
require_relative '../lib/tooling/gettext_extractor'
pot_file = ARGV.shift
+silent = '--silent' in ARGV
if !pot_file || !Dir.exist?(File.dirname(pot_file))
abort <<~MSG
@@ -12,9 +13,11 @@ if !pot_file || !Dir.exist?(File.dirname(pot_file))
MSG
end
-puts <<~MSG
- Extracting translatable strings from source files...
-MSG
+unless silent
+ puts <<~MSG
+ Extracting translatable strings from source files...
+ MSG
+end
root_dir = File.expand_path('../../', __dir__)
@@ -24,6 +27,8 @@ extractor = Tooling::GettextExtractor.new(
File.write(pot_file, extractor.generate_pot)
-puts <<~MSG
- All done. Please commit the changes to `#{pot_file}`.
-MSG
+unless silent
+ puts <<~MSG
+ All done. Please commit the changes to `#{pot_file}`.
+ MSG
+end