From 188350290fda6e4741538c1aaa47fff2d103c092 Mon Sep 17 00:00:00 2001 From: Zeger-Jan van de Weg Date: Thu, 7 Mar 2019 10:47:22 +0100 Subject: Remove script to generate AT issues Back in the day where Gitaly was a migration project, the acceptance testing required an issue to be created. To make sure it was generated correctly a script would generate it. This change removes this script as it's not needed anymore. [ci skip] --- _support/generate-acceptance-testing-issue | 47 ------------------------------ 1 file changed, 47 deletions(-) delete mode 100755 _support/generate-acceptance-testing-issue (limited to '_support') diff --git a/_support/generate-acceptance-testing-issue b/_support/generate-acceptance-testing-issue deleted file mode 100755 index f8d2653d8..000000000 --- a/_support/generate-acceptance-testing-issue +++ /dev/null @@ -1,47 +0,0 @@ -#!/usr/bin/env ruby - -require 'optparse' - -options = {} -OptionParser.new do |opts| - opts.banner = "Usage: #{$PROGRAM_NAME} [options]" - - opts.on("-c", "--conversation CONVERSATION_NUMBER", OptionParser::DecimalInteger, "Conversation Issue Number") do |conversation_issue_number| - options['CONVERSATION_NUMBER'] = conversation_issue_number - end - - opts.on("-f", "--feature-flag FEATURE_FLAG_NAME", "Feature Flag Name") do |feature_flag_name| - feature_flag_name = feature_flag_name.gsub(/^gitaly_/, "") - options['GITALY_FEATURE_NAME'] = "gitaly_#{feature_flag_name}" - end - - opts.on("-s", "--service-name GRPC_SERVICE_NAME", "GRPC Service Name") do |service_name| - options['GRPC_SERVICE_NAME'] = service_name - end - - opts.on("-m", "--method-name GRPC_METHOD_NAME", "GRPC Method Name") do |method_name| - options['GRPC_METHOD_NAME'] = method_name - end -end.parse! - -def prompt(text) - puts text - gets.chomp -end - -template_file = File.join(File.dirname(__FILE__), "..", ".gitlab", "issue_templates", "Migration_Acceptance_Testing.md") - -options['CONVERSATION_NUMBER'] = prompt("Conversation Issue Number?") unless options['CONVERSATION_NUMBER'] -options['GITALY_FEATURE_NAME'] = prompt("Feature Flag Name? (prefix with gitaly_)") unless options['GITALY_FEATURE_NAME'] -options['GRPC_SERVICE_NAME'] = prompt("GRPC Service Name?") unless options['GRPC_SERVICE_NAME'] -options['GRPC_METHOD_NAME'] = prompt("GRPC Method Name?") unless options['GRPC_METHOD_NAME'] - -File.open(template_file) do |file| - file.each do |line| - options.each do |key, value| - line = line.gsub(key, value.to_s) - end - - puts line - end -end -- cgit v1.2.3