Class: Gitlab::QA::Report::ReportAsIssue
- Inherits:
-
Object
- Object
- Gitlab::QA::Report::ReportAsIssue
- Defined in:
- lib/gitlab/qa/report/report_as_issue.rb
Direct Known Subclasses
Constant Summary collapse
- MAX_TITLE_LENGTH =
255
Instance Method Summary collapse
-
#initialize(token:, input_files:, project: nil, dry_run: false, **kwargs) ⇒ ReportAsIssue
constructor
A new instance of ReportAsIssue.
- #invoke! ⇒ Object
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 |