Class: RubocopPr::Repositories::Github::PullRequest

Inherits:
Base
  • Object
show all
Defined in:
lib/rubocop_pr/repositories/github.rb

Overview

The representation of the PR

Instance Attribute Summary collapse

Attributes inherited from Base

#body, #cop, #number, #title

Instance Method Summary collapse

Methods inherited from Base

#assignees, #build_command, #create, #labels

Constructor Details

#initialize(cop:, **opt) ⇒ PullRequest

Returns a new instance of PullRequest.



83
84
85
86
87
88
# File 'lib/rubocop_pr/repositories/github.rb', line 83

def initialize(cop:, **opt)
  super
  @assignees = Array opt[:pull_request_assignees]
  @labels = Array opt[:pull_request_labels]
  @reviewers = Array opt[:pull_request_reviewers]
end

Instance Attribute Details

#reviewersObject (readonly)

Returns the value of attribute reviewers.



81
82
83
# File 'lib/rubocop_pr/repositories/github.rb', line 81

def reviewers
  @reviewers
end