Sha256: 78bf3367dda045e195abd0e22271039eb1bac4e5e4b6435af5fdb216d7057e6e

Contents?: true

Size: 1.26 KB

Versions: 9

Compression:

Stored size: 1.26 KB

Contents

# frozen_string_literal: true

module GitlabQuality
  module TestTooling
    class GitlabIssueDryClient < GitlabIssueClient
      def create_issue(title:, description:, labels:, issue_type: 'issue', confidential: false)
        attrs = { description: description, labels: labels, confidential: confidential }

        puts "The following #{issue_type} would have been created:"
        puts "project: #{project}, title: #{title}, attrs: #{attrs}"
      end

      def edit_issue(iid:, options: {})
        puts "The #{project}##{iid} issue would have been updated with: #{options}"
      end

      def create_issue_note(iid:, note:)
        puts "The following note would have been posted on #{project}##{iid} issue: #{note}"
      end

      def edit_issue_note(issue_iid:, note_id:, note:)
        puts "The following note would have been edited on #{project}##{issue_iid} (note #{note_id}) issue: #{note}"
      end

      def add_note_to_issue_discussion_as_thread(iid:, discussion_id:, body:)
        puts "The following discussion note would have been posted on #{project}##{iid} (discussion #{discussion_id}) issue: #{body}"
      end

      def upload_file(file_fullpath:)
        puts "The following file would have been uploaded: #{file_fullpath}"
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
gitlab_quality-test_tooling-1.9.0 lib/gitlab_quality/test_tooling/gitlab_issue_dry_client.rb
gitlab_quality-test_tooling-1.8.1 lib/gitlab_quality/test_tooling/gitlab_issue_dry_client.rb
gitlab_quality-test_tooling-1.8.0 lib/gitlab_quality/test_tooling/gitlab_issue_dry_client.rb
gitlab_quality-test_tooling-1.7.0 lib/gitlab_quality/test_tooling/gitlab_issue_dry_client.rb
gitlab_quality-test_tooling-1.5.4 lib/gitlab_quality/test_tooling/gitlab_issue_dry_client.rb
gitlab_quality-test_tooling-1.5.3 lib/gitlab_quality/test_tooling/gitlab_issue_dry_client.rb
gitlab_quality-test_tooling-1.5.2 lib/gitlab_quality/test_tooling/gitlab_issue_dry_client.rb
gitlab_quality-test_tooling-1.5.1 lib/gitlab_quality/test_tooling/gitlab_issue_dry_client.rb
gitlab_quality-test_tooling-1.5.0 lib/gitlab_quality/test_tooling/gitlab_issue_dry_client.rb