Class: Gitlab::QA::Report::ReportAsIssue

Inherits:
Object
  • Object
show all
Defined in:
lib/gitlab/qa/report/report_as_issue.rb

Constant Summary collapse

MAX_TITLE_LENGTH =
255

Instance Method Summary collapse

Constructor Details

#initialize(token:, input_files:, project: nil, dry_run: false, **kwargs) ⇒ ReportAsIssue

Returns a new instance of ReportAsIssue.



11
12
13
14
15
# File 'lib/gitlab/qa/report/report_as_issue.rb', line 11

def initialize(token:, input_files:, project: nil, dry_run: false, **kwargs)
  @project = project
  @gitlab = (dry_run ? GitlabIssueDryClient : GitlabIssueClient).new(token: token, project: project)
  @files = Array(input_files)
end

Instance Method Details

#invoke!Object



17
18
19
20
21
# File 'lib/gitlab/qa/report/report_as_issue.rb', line 17

def invoke!
  validate_input!

  run!
end