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 'scripts/api/update_issue.rb')
-rw-r--r--scripts/api/update_issue.rb29
1 files changed, 0 insertions, 29 deletions
diff --git a/scripts/api/update_issue.rb b/scripts/api/update_issue.rb
deleted file mode 100644
index ce296ebc358..00000000000
--- a/scripts/api/update_issue.rb
+++ /dev/null
@@ -1,29 +0,0 @@
-# frozen_string_literal: true
-
-require 'gitlab'
-require_relative 'default_options'
-
-class UpdateIssue
- def initialize(options)
- @project = options.fetch(:project)
-
- # Force the token to be a string so that if api_token is nil, it's set to '',
- # allowing unauthenticated requests (for forks).
- api_token = options.delete(:api_token).to_s
-
- warn "No API token given." if api_token.empty?
-
- @client = Gitlab.client(
- endpoint: options.delete(:endpoint) || API::DEFAULT_OPTIONS[:endpoint],
- private_token: api_token
- )
- end
-
- def execute(issue_iid, issue_data)
- client.edit_issue(project, issue_iid, issue_data)
- end
-
- private
-
- attr_reader :project, :client
-end