Class: Google::Apis::ChecksV1alpha::GoogleChecksRepoScanV1alphaPullRequest
- Inherits:
-
Object
- Object
- Google::Apis::ChecksV1alpha::GoogleChecksRepoScanV1alphaPullRequest
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/checks_v1alpha/classes.rb,
lib/google/apis/checks_v1alpha/representations.rb,
lib/google/apis/checks_v1alpha/representations.rb
Overview
Pull request info.
Instance Attribute Summary collapse
-
#base_branch ⇒ String
Required.
-
#pr_number ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleChecksRepoScanV1alphaPullRequest
constructor
A new instance of GoogleChecksRepoScanV1alphaPullRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleChecksRepoScanV1alphaPullRequest
Returns a new instance of GoogleChecksRepoScanV1alphaPullRequest.
477 478 479 |
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 477 def initialize(**args) update!(**args) end |
Instance Attribute Details
#base_branch ⇒ String
Required. For PR analysis, we compare against the most recent scan of the base
branch to highlight new issues.
Corresponds to the JSON property baseBranch
469 470 471 |
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 469 def base_branch @base_branch end |
#pr_number ⇒ String
Required. This can be supplied by the user or parsed automatically from
predefined CI environment variables.
Corresponds to the JSON property prNumber
475 476 477 |
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 475 def pr_number @pr_number end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
482 483 484 485 |
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 482 def update!(**args) @base_branch = args[:base_branch] if args.key?(:base_branch) @pr_number = args[:pr_number] if args.key?(:pr_number) end |